dragonfly.git
12 years agosh: Add tests for some corner cases of 'case' exit status.
Peter Avalos [Sun, 25 Dec 2011 17:38:33 +0000 (09:38 -0800)]
sh: Add tests for some corner cases of 'case' exit status.

Obtained-from:  FreeBSD 228007

12 years agosh: Add test for exit status of for loop without items.
Peter Avalos [Sun, 25 Dec 2011 17:35:56 +0000 (09:35 -0800)]
sh: Add test for exit status of for loop without items.

POSIX says the exit status of a for loop without any items shall be 0.
There are no exceptions if the exit status of the previous command was
not 0 or if the item list contains a command substitution with non-zero
exit status.

Obtained-from:  FreeBSD 226892

12 years agosh: Add a test for a fairly obscure case with aliases.
Peter Avalos [Sun, 25 Dec 2011 17:34:40 +0000 (09:34 -0800)]
sh: Add a test for a fairly obscure case with aliases.

Obtained-from:  FreeBSD 224104

12 years agosh: Test that '!' is literal if quoted and first char of bracket expr
Peter Avalos [Sun, 25 Dec 2011 17:33:08 +0000 (09:33 -0800)]
sh: Test that '!' is literal if quoted and first char of bracket expr

Obtained-from:  FreeBSD 223546

12 years agosh: Add test for df6b9adb7f429266f4faf79629df957f76d736f3.
Peter Avalos [Sun, 25 Dec 2011 17:30:32 +0000 (09:30 -0800)]
sh:  Add test for df6b9adb7f429266f4faf79629df957f76d736f3.

Obtained-from:  FreeBSD 223283

12 years agosh: Remove impossible evalskip check in 'for'.
Peter Avalos [Sun, 25 Dec 2011 17:22:49 +0000 (09:22 -0800)]
sh: Remove impossible evalskip check in 'for'.

Obtained-from:  FreeBSD 228015

12 years agosh: Reduce one level of evaltree() recursion when executing 'case'.
Peter Avalos [Sun, 25 Dec 2011 17:20:37 +0000 (09:20 -0800)]
sh: Reduce one level of evaltree() recursion when executing 'case'.

Free expanded case text before executing commands.
Remove impossible evalskip checks (expanding an argument cannot set
evalskip anymore since $(break) and the like are properly executed
in a subshell environment).

Obtained-from:  FreeBSD 228013

12 years agosh: Allow unsetting OPTIND.
Peter Avalos [Sun, 25 Dec 2011 17:16:48 +0000 (09:16 -0800)]
sh: Allow unsetting OPTIND.

Obtained-from:  FreeBSD 227773

12 years agosh: Remove undefined behaviour due to overflow in +/-/* in arithmetic.
Peter Avalos [Sun, 25 Dec 2011 17:13:22 +0000 (09:13 -0800)]
sh: Remove undefined behaviour due to overflow in +/-/* in arithmetic.

Obtained-from:  FreeBSD 227369

12 years agosh(1): Improve documentation of field splitting.
Peter Avalos [Sun, 25 Dec 2011 17:11:49 +0000 (09:11 -0800)]
sh(1): Improve documentation of field splitting.

Obtained-from:  FreeBSD 227122

12 years agoMerge branch 'master' of /home/www-data/gitweb/dragonfly
Peter Avalos [Sat, 24 Dec 2011 21:17:59 +0000 (13:17 -0800)]
Merge branch 'master' of /home/www-data/gitweb/dragonfly

12 years agopam_unix: Respect passwordtime from login.conf if set.
Peter Avalos [Sat, 24 Dec 2011 21:14:25 +0000 (13:14 -0800)]
pam_unix:  Respect passwordtime from login.conf if set.

Rewrap a lot of really short lines in pam_unix.8.

Note that pam_unix(8) does not respect PAM_CHANGE_EXPIRED_AUTHTOK.

Obtained-from:  FreeBSD

12 years agopam_ssh: Don't allow a bogus passphrase for unencrypted keys.
Peter Avalos [Sat, 24 Dec 2011 21:00:13 +0000 (13:00 -0800)]
pam_ssh:  Don't allow a bogus passphrase for unencrypted keys.

key_load_private() ignores the passphrase argument if the private key
is unencrypted.  This defeats the nullok check, because it means a
non-null passphrase will successfully unlock the key.

To address this, try at first to load the key without a passphrase.
If this succeeds and the user provided a non-empty passphrase *or*
nullok is false, reject the key.

While I'm here: Load the ECDSA key if there is one.

Obtained-from:  FreeBSD 227757, 219426, & 226101

12 years agoInclude lib/Makefile.inc in pam_modules' Makefile.inc.
Peter Avalos [Sat, 24 Dec 2011 20:53:42 +0000 (12:53 -0800)]
Include lib/Makefile.inc in pam_modules' Makefile.inc.

Otherwise, none of the modules will pick up what's in lib/Makefile.inc.

12 years agoGC pam_krb5 and pam_ksu.
Peter Avalos [Sat, 24 Dec 2011 20:24:52 +0000 (12:24 -0800)]
GC pam_krb5 and pam_ksu.

These haven't been built since 2009, and pam_krb5 is available in
pkgsrc if someone needs it.

12 years agopam_group: Add ruser and luser options.
Peter Avalos [Sat, 24 Dec 2011 20:15:58 +0000 (12:15 -0800)]
pam_group: Add ruser and luser options.

The former corresponds to the current behavior, where the module checks
that the supplicant is a member of the required group.  The latter
checks the target user instead.  If neither option was specified,
pam_group(8) assumes "ruser" and issues a warning.

Obtained-from:  FreeBSD 219563 & 219564

12 years agostyle(9) fix.
Peter Avalos [Sat, 24 Dec 2011 20:03:05 +0000 (12:03 -0800)]
style(9) fix.

12 years agoNFS server: Record bwrite() error in nfsrv_commit.
Venkatesh Srinivas [Sat, 24 Dec 2011 19:27:12 +0000 (11:27 -0800)]
NFS server: Record bwrite() error in nfsrv_commit.

12 years agoNFS server: Zero not-fully-initialized UIO structure.
Venkatesh Srinivas [Sat, 24 Dec 2011 18:26:17 +0000 (10:26 -0800)]
NFS server: Zero not-fully-initialized UIO structure.

From: OpenBSD nfs_serv.c 1.90

12 years agoNFS server: Import various fixes from FreeBSD.
Venkatesh Srinivas [Sat, 24 Dec 2011 18:16:53 +0000 (10:16 -0800)]
NFS server: Import various fixes from FreeBSD.

* Rev 228520: Honor NFSv3 commit call when count = 0. (delphij)

* Rev 228185: Enhance sequential access heuristic used for readahead
              and reuse it for writes as well.
        * Use a prime number for sequential detection table
        * Factor our sequential detection code
        * Ramp up sequential heurstic quickly based on IO size.

        This patch differs from the FreeBSD version in that we rapidly
        decay the sequential heuristic as in the original code and don't
        attempt to deal with reordered RPCs.

* Rev 159871: Size the NFS server dupreq cache on the basis of nmbclusters.
This patch differs from the FreeBSD version in that we don't
alter the desired cache size based on nmbcluster change events.

* Rev 116789: Bug in nfsrv_read() that caused the replies to certain NFSv3
short read operations at the end of a file to not have the "eof"
flag set. (iedowse)

12 years ago<sys/tbridge.h>: Add a __printflike().
Sascha Wildner [Sat, 24 Dec 2011 15:11:01 +0000 (16:11 +0100)]
<sys/tbridge.h>: Add a __printflike().

12 years agolibm: Fix a typo in MLINKS name.
Sascha Wildner [Sat, 24 Dec 2011 15:10:56 +0000 (16:10 +0100)]
libm: Fix a typo in MLINKS name.

12 years agoProperly dispose of page in sf_buf_mfree(), #2.
Venkatesh Srinivas [Sat, 24 Dec 2011 08:41:28 +0000 (00:41 -0800)]
Properly dispose of page in sf_buf_mfree(), #2.

sf_buf_mfree() had a wakeup before it attempted to free a page or wake it up
again. Neither are allowed, as the first wakeup unsets the page BUSY.
Follow on to commit 8c3e9928c907

Reported-by: lentferj
12 years agoAdd HAMMER2 vnode tag type.
Venkatesh Srinivas [Sat, 24 Dec 2011 07:12:36 +0000 (23:12 -0800)]
Add HAMMER2 vnode tag type.

12 years agolibpam: Update Makefile.
Peter Avalos [Sat, 24 Dec 2011 00:59:58 +0000 (16:59 -0800)]
libpam: Update Makefile.

This commit updates the Makefile so that it resembles the Makefiles
distributed by the vendor dist.  This will make updates a little easier.

No functional changes.

12 years agoMerge branch 'master' of /repository/git/dragonfly
Venkatesh Srinivas [Sat, 24 Dec 2011 00:32:56 +0000 (16:32 -0800)]
Merge branch 'master' of /repository/git/dragonfly

12 years agokernel: Factor out common parts of bufdamon and bufdaemon_hw.
Venkatesh Srinivas [Sat, 24 Dec 2011 00:31:07 +0000 (16:31 -0800)]
kernel: Factor out common parts of bufdamon and bufdaemon_hw.

Except for a few parameters, the core loops of bufdaemon and bufdaemon_hw were
identical. This commit has no functional change.

12 years agoRemove the script that was used to update the pciconf(8) database.
Sascha Wildner [Sat, 24 Dec 2011 00:11:38 +0000 (01:11 +0100)]
Remove the script that was used to update the pciconf(8) database.

12 years agoUpdate the pciconf(8) database.
Sascha Wildner [Sat, 24 Dec 2011 00:10:23 +0000 (01:10 +0100)]
Update the pciconf(8) database.

Dec 21 snapshot from http://pciids.sourceforge.net/

This commit switches us to using the sourceforge list only. It's large,
actively maintained, and comes in the right format for pciconf(8) so we
need no scripts to prepare it.

Previously it was a combination of this database with Chris Hart's (seems
to be no longer actively maintained) and Jim Boemler's.

12 years agoUpdate build for OpenPAM Lycopsida.
Peter Avalos [Fri, 23 Dec 2011 23:46:46 +0000 (15:46 -0800)]
Update build for OpenPAM Lycopsida.

12 years agoMerge branch 'vendor/OPENPAM'
Peter Avalos [Fri, 23 Dec 2011 21:47:59 +0000 (13:47 -0800)]
Merge branch 'vendor/OPENPAM'

12 years agoImport OpenPAM Lycopsida.
Peter Avalos [Fri, 23 Dec 2011 21:28:41 +0000 (13:28 -0800)]
Import OpenPAM Lycopsida.

This also includes changeset 509 to prevent a logged error message if
the file doesn't exist in openpam_check_owner_perms.c.

12 years agotelnetd: Validate key length prior to copying into a fixed buffer.
Peter Avalos [Fri, 23 Dec 2011 18:16:31 +0000 (10:16 -0800)]
telnetd:  Validate key length prior to copying into a fixed buffer.

It's possible for a remote attacker to execute arbitrary code with the
privileges of the telnetd daemon (normally root) prior to this fix.
CVE-2011-4862

Obtained-from:   FreeBSD-SA-11:08.telnetd

12 years agostore.9: Add a line about suword32().
Sascha Wildner [Fri, 23 Dec 2011 14:51:00 +0000 (15:51 +0100)]
store.9: Add a line about suword32().

12 years agovkernel/vkernel64: Add suword32() to fix build.
Sascha Wildner [Fri, 23 Dec 2011 14:50:06 +0000 (15:50 +0100)]
vkernel/vkernel64: Add suword32() to fix build.

12 years agokernel/x86_64: Remove a useless file.
Sascha Wildner [Fri, 23 Dec 2011 13:51:47 +0000 (14:51 +0100)]
kernel/x86_64: Remove a useless file.

12 years agotbridge: Make it compilable into the kernel and add it to the LINTs.
Sascha Wildner [Fri, 23 Dec 2011 00:04:41 +0000 (01:04 +0100)]
tbridge: Make it compilable into the kernel and add it to the LINTs.

This is purely for build testing. It would never be compiled into a
normal kernel.

12 years agotbridge: Remove an unused header. It's all in <sys/tbridge.h>.
Sascha Wildner [Thu, 22 Dec 2011 23:53:42 +0000 (00:53 +0100)]
tbridge: Remove an unused header. It's all in <sys/tbridge.h>.

12 years agokernel: Remove two PC98 specific serial driver headers.
Sascha Wildner [Thu, 22 Dec 2011 23:31:45 +0000 (00:31 +0100)]
kernel: Remove two PC98 specific serial driver headers.

12 years agoboot: Remove some unused files in sys/boot.
Sascha Wildner [Thu, 22 Dec 2011 23:07:44 +0000 (00:07 +0100)]
boot: Remove some unused files in sys/boot.

12 years agokernel: Remove some more old headers.
Sascha Wildner [Thu, 22 Dec 2011 22:15:21 +0000 (23:15 +0100)]
kernel: Remove some more old headers.

They all got useless with the recent ISA-only driver removal.

12 years agoral(4): Remove an unused header.
Sascha Wildner [Thu, 22 Dec 2011 21:55:10 +0000 (22:55 +0100)]
ral(4): Remove an unused header.

No longer used since ral(4) was switched to modules for the firmware.

12 years agokernel - Fix new static stackgap feature from recent commit
Matthew Dillon [Thu, 22 Dec 2011 21:18:41 +0000 (13:18 -0800)]
kernel - Fix new static stackgap feature from recent commit

* Fix the code up a bit to make the feature actually work properly.

12 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Thu, 22 Dec 2011 21:18:37 +0000 (13:18 -0800)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

12 years agokernel: Remove an unused header file.
Sascha Wildner [Thu, 22 Dec 2011 21:17:02 +0000 (22:17 +0100)]
kernel: Remove an unused header file.

The two (PC98) drivers using this were removed in 2005.

12 years agokernel - cleanup bit number test
Matthew Dillon [Thu, 22 Dec 2011 19:48:34 +0000 (11:48 -0800)]
kernel - cleanup bit number test

* Use testq/%rax instead of %eax.  This change should have no real effect
  since the test is against a bit number and not a bit mask, but is more
  correct.

12 years agokernel - Reorder critical section interlock in splz()
Matthew Dillon [Thu, 22 Dec 2011 19:45:06 +0000 (11:45 -0800)]
kernel - Reorder critical section interlock in splz()

* Reorder a critical section interlock in splz() to remove a one-instruction
  window where an interrupt might nest against the splz() operation.

12 years agokernel - Properly dispose of vm_page_t in sf_buf_mfree()
Matthew Dillon [Thu, 22 Dec 2011 19:43:26 +0000 (11:43 -0800)]
kernel - Properly dispose of vm_page_t in sf_buf_mfree()

* Properly dispose of vm_page_t in sf_buf_mfree(), used by sendfile()

* Should fix a VM page delete/free panic.

Reported-by: sephe
12 years agokernel - Implement static stackgap feature in addition to random stackgap
Matthew Dillon [Thu, 22 Dec 2011 19:39:56 +0000 (11:39 -0800)]
kernel - Implement static stackgap feature in addition to random stackgap

* Specifying a negative kern.stackgap_random value implements a static
  stack gap intead of a random one.  The negative value does not need to
  be a power of 2 but will, of course, still be aligned.

12 years agokernel - Increase cluster_limit for exec args on machines w/ > 16 cpus
Matthew Dillon [Thu, 22 Dec 2011 19:32:57 +0000 (11:32 -0800)]
kernel - Increase cluster_limit for exec args on machines w/ > 16 cpus

* Increase the objcache for exec args on machines with more than 16
  cpus to accomodate a higher possible exec rate.

12 years agokernel - Add suword32 and fix argc/envc initialization
Matthew Dillon [Thu, 22 Dec 2011 19:30:41 +0000 (11:30 -0800)]
kernel - Add suword32 and fix argc/envc initialization

* Add suword32() for cases where we want to write out a word and not a long.

* argc and envc are integers, not longs.

* Change has no effect on intel/amd boxes

12 years agokernel - Fix floating point save state structure and minor npx issues
Matthew Dillon [Thu, 22 Dec 2011 19:21:41 +0000 (11:21 -0800)]
kernel - Fix floating point save state structure and minor npx issues

* The floating point save structure(s) used by the kernel and possibly
  also userland were too large for x86-64 due to a porting error where
  'long' variables were left intact that should have been turned into
  32-bit variables.

  No known adverse effect to the too-large structures but we have to get
  it right.

* npxexit() was not being called in a kernel thread exit case.  Kernel
  threads do not use the FP unit so the case was never hit, but fix it
  anyway.

* Move a critical section to cover a flags test to handle a very rare
  preemptive thread switch issue.  Since the preempting thread is a
  kernel thread which does not use the FP unit this case was never hit,
  but fix it anyway.

12 years agolibc - fix mcontext issues
Matthew Dillon [Thu, 22 Dec 2011 19:13:45 +0000 (11:13 -0800)]
libc - fix mcontext issues

* Fix incorrect register use in _get_mcontext() left over from the
  32-bit port to 64-bits.

* This routine is only (currently) used by a few pkgsrc packages.

12 years agopci: Bring in HyperTransport MSI mapping support
Sepherosa Ziehau [Thu, 22 Dec 2011 11:52:02 +0000 (19:52 +0800)]
pci: Bring in HyperTransport MSI mapping support

12 years agoBump __DragonFly_version in param.h due to libm update
John Marino [Thu, 22 Dec 2011 07:19:05 +0000 (08:19 +0100)]
Bump __DragonFly_version in param.h due to libm update

12 years agolibm: Man page updates
John Marino [Wed, 21 Dec 2011 22:34:17 +0000 (23:34 +0100)]
libm: Man page updates

These are the man page updates required as a consequence
of adding FreeBSD functions to libm.

12 years agolibm: Sync with FreeBSD (~50 math functions added)
John Marino [Wed, 21 Dec 2011 17:10:04 +0000 (18:10 +0100)]
libm: Sync with FreeBSD (~50 math functions added)

The main purpose of syncing with FreeBSD is to obtain numerous "long double"
functions which are required for C99 compliance.  There are still many
functions missing.  According to g++ testsuite, the following 10 functions
still must be implemented at least:
        coshl           logl            expl
        sinhl           log2l           expm1l
        acoshl          log10l
        asinhl          log1pl

Also known missing are nexttowardl, tgammal, and the long double version of
most of several complex functions.

A few years ago the freebsd-based math library was thrown out in favor of
the NetBSD version.  It may be time to reverse that and sync the entire
libm with FreeBSD.  Right now the DragonFly libm is a mixture between the
two and it doesn't divide nicely.  All the rounding and rint functions from
NetBSD had to be thrown out as well as the "kernel" functions.  For the
short term this is okay, but in the long term it would be a good idea to
start tracking FreeBSD again.  They are maintaining this library more
frequently and adding more functions more rapidly than NetBSD, so it would
be good to piggy-back on that effort.

The man page will be committed separately.

12 years agolibm: Add .section .note.GNU-stack to all assembly files
John Marino [Tue, 20 Dec 2011 12:07:37 +0000 (13:07 +0100)]
libm: Add .section .note.GNU-stack to all assembly files

GCC always appends the following line to assembly files it generates:

  .section    .note.GNU-stack,"",@progbits

This creates an empty section named ".note.GNU-stack" to the object file
which servers as a hint to GNU linkers that this object file does not
require an executable stack.  When all linked object files indicate that
no executable stack is needed, the executable NX bit is set such as the
binary is run on a non-executable stack.  This is a free security
improvement against buffer overflow attacks.

12 years agolibm: Some cleanup in the manual pages.
Sascha Wildner [Wed, 21 Dec 2011 18:53:20 +0000 (19:53 +0100)]
libm: Some cleanup in the manual pages.

12 years agolibm: A little cleanup in the exp*(3) MLINKS.
Sascha Wildner [Wed, 21 Dec 2011 18:28:10 +0000 (19:28 +0100)]
libm: A little cleanup in the exp*(3) MLINKS.

12 years agoRemove some __STDC__ checks.
Sascha Wildner [Wed, 21 Dec 2011 18:05:43 +0000 (19:05 +0100)]
Remove some __STDC__ checks.

12 years agoaltq/cbq: Clear poll-cache if the cached class is to be destroyed
Sepherosa Ziehau [Wed, 21 Dec 2011 08:09:50 +0000 (16:09 +0800)]
altq/cbq: Clear poll-cache if the cached class is to be destroyed

12 years agoaltq/hfsc: Clear poll-cache if the cached hfsc class is to be destroyed
Sepherosa Ziehau [Wed, 21 Dec 2011 08:01:58 +0000 (16:01 +0800)]
altq/hfsc: Clear poll-cache if the cached hfsc class is to be destroyed

Reported-by: pavalos@
12 years agosmb - Tear out C++-wannabe exception magic
Samuel J. Greear [Tue, 20 Dec 2011 19:32:14 +0000 (12:32 -0700)]
smb - Tear out C++-wannabe exception magic

12 years agoi386/ioapic_abi: Mark the unused IOAPIC irqmap as reserved
Sepherosa Ziehau [Tue, 20 Dec 2011 11:47:23 +0000 (19:47 +0800)]
i386/ioapic_abi: Mark the unused IOAPIC irqmap as reserved

Since IDT on i386 is shared, we need to guard against reuse
an already used IDT entry

12 years agoRemove formatted version of ieee.3 manpage too.
Sascha Wildner [Tue, 20 Dec 2011 11:46:12 +0000 (12:46 +0100)]
Remove formatted version of ieee.3 manpage too.

12 years agolibm: Bump __DragonFly_version, remove obsolete man page
John Marino [Tue, 20 Dec 2011 10:12:55 +0000 (11:12 +0100)]
libm: Bump __DragonFly_version, remove obsolete man page

The ieee (3) man page is no longer generated, so add it to the upgrade
script. The last commit introduced several functions to libm, so that
merits increasing the param.h version.

12 years agolibm: Sync with NetBSD
John Marino [Mon, 19 Dec 2011 22:29:15 +0000 (23:29 +0100)]
libm: Sync with NetBSD

Adds the following assembly function: logbl, ilogbl, modf, scalbnl
Adds the following source functions: exp2, exp2f, frexp, nextafterl,
  nexttoward, requo, remquof, and fabsl
Captures all the bug fixes since last sync
Synchronizes with current NetBSD versions where possible.

Required to fix modern gcc/fortran and other packages.
Gets closer to C99 capability.

12 years agoloader.8: Add missing spaces.
Sascha Wildner [Tue, 20 Dec 2011 09:59:00 +0000 (10:59 +0100)]
loader.8: Add missing spaces.

12 years agoloader.conf.5: Use .Dx.
Sascha Wildner [Tue, 20 Dec 2011 09:58:52 +0000 (10:58 +0100)]
loader.conf.5: Use .Dx.

12 years agovinum(4): Remove some casts to union and solve it in standard C.
Sascha Wildner [Mon, 19 Dec 2011 18:09:03 +0000 (19:09 +0100)]
vinum(4): Remove some casts to union and solve it in standard C.

12 years agovpo(4): Remove some casts to union and solve it in standard C.
Sascha Wildner [Mon, 19 Dec 2011 18:03:05 +0000 (19:03 +0100)]
vpo(4): Remove some casts to union and solve it in standard C.

12 years agokernel: Shuffle some initialization around to avoid forward declarations.
Sascha Wildner [Mon, 19 Dec 2011 12:18:57 +0000 (13:18 +0100)]
kernel: Shuffle some initialization around to avoid forward declarations.

12 years agokernel: Remove now obsolete CPU_AMD64X2_INTR_SPAM option.
Sascha Wildner [Mon, 19 Dec 2011 12:05:35 +0000 (13:05 +0100)]
kernel: Remove now obsolete CPU_AMD64X2_INTR_SPAM option.

12 years agox86_64: Always set LINTEN for AMD CPUs if their family >= 0xF
Sepherosa Ziehau [Mon, 19 Dec 2011 11:54:10 +0000 (19:54 +0800)]
x86_64: Always set LINTEN for AMD CPUs if their family >= 0xF

This merges d54b8204947bb8a83fa3d2c7f1b595e47f3802c2

12 years agoi386: Always set LINTEN for AMD CPUs if their family >= 0xF
Sepherosa Ziehau [Mon, 19 Dec 2011 11:33:30 +0000 (19:33 +0800)]
i386: Always set LINTEN for AMD CPUs if their family >= 0xF

Since LINTEN will take effect when LAPIC is hardware enabled,
so we defer the LINTEN turning on when we know LAPIC will be
software enabled.

This fixes the recent MI per-cpu interrupt information array
support on AMD CPUs when IOAPIC is disabled on SMP system.

12 years agogpt(8): increase size of boot slice to 768MB
François Tigeot [Sun, 18 Dec 2011 19:48:19 +0000 (20:48 +0100)]
gpt(8): increase size of boot slice to 768MB

* aligning it to the size of the boot slice created by the
  live cd installer

12 years agoi386/MachintrABI: Use low-level INTR{EN,DIS} in intr_{setup,teardown}
Sepherosa Ziehau [Sun, 18 Dec 2011 13:53:17 +0000 (21:53 +0800)]
i386/MachintrABI: Use low-level INTR{EN,DIS} in intr_{setup,teardown}

This merges 26cf64b268c65144b898d5d00883a252da364c03

12 years agoi386/icu: Add intr_{enable,disable} wrapper for ICU_INTR{EN,DIS}
Sepherosa Ziehau [Sun, 18 Dec 2011 13:20:17 +0000 (21:20 +0800)]
i386/icu: Add intr_{enable,disable} wrapper for ICU_INTR{EN,DIS}

This merges 1967234a6fada57e929763ef261fcb5739102053

12 years agoi386/ioapic_abi: Augment intr_{setup,teardown} w/ assertions
Sepherosa Ziehau [Sun, 18 Dec 2011 12:09:31 +0000 (20:09 +0800)]
i386/ioapic_abi: Augment intr_{setup,teardown} w/ assertions

This merges 88100cf6c15096c1eb0776d2a8bd9dcf04d19095

12 years agoi386/ioapic_abi: Augment intr_disable/intr_enable w/ assertions
Sepherosa Ziehau [Sun, 18 Dec 2011 12:02:11 +0000 (20:02 +0800)]
i386/ioapic_abi: Augment intr_disable/intr_enable w/ assertions

This merges aef690c8e8f24bd1169780ebc7bade827fb3f370

12 years agox86_64: Per-cpu IDT
Sepherosa Ziehau [Sun, 18 Dec 2011 05:05:07 +0000 (13:05 +0800)]
x86_64: Per-cpu IDT

12 years agoioapic: Even for UP, we still should initialize irqmap properly
Sepherosa Ziehau [Sun, 18 Dec 2011 03:15:51 +0000 (11:15 +0800)]
ioapic: Even for UP, we still should initialize irqmap properly

Since we enable IOAPIC even for UP building

12 years agoidt: Remove no longer applied comment about NIDT
Sepherosa Ziehau [Sun, 18 Dec 2011 03:11:58 +0000 (11:11 +0800)]
idt: Remove no longer applied comment about NIDT

We should always use all of the available IDT entries

12 years agonexus/intr: Properly assert cpuid for interrupt resources
Sepherosa Ziehau [Sun, 18 Dec 2011 02:17:48 +0000 (10:17 +0800)]
nexus/intr: Properly assert cpuid for interrupt resources

Noticed-by: Nuno Antunes
12 years agosym(4): Remove excessive semicolons.
Sascha Wildner [Sat, 17 Dec 2011 14:53:51 +0000 (15:53 +0100)]
sym(4): Remove excessive semicolons.

They are provided by the macro definition.

This is the same what FreeBSD did in r118472.

12 years agotwe(4): Remove a cast to a union (which is a GNU extension).
Sascha Wildner [Sat, 17 Dec 2011 14:04:09 +0000 (15:04 +0100)]
twe(4): Remove a cast to a union (which is a GNU extension).

12 years agovinum(4): Fix wrong parenthesizing.
Sascha Wildner [Fri, 16 Dec 2011 19:51:30 +0000 (20:51 +0100)]
vinum(4): Fix wrong parenthesizing.

12 years agopcn(4): Fix a bug where && was meant but & was used.
Sascha Wildner [Fri, 16 Dec 2011 13:50:23 +0000 (14:50 +0100)]
pcn(4): Fix a bug where && was meant but & was used.

12 years agomemcontrol(8): Fix wrong parenthesizing.
Sascha Wildner [Fri, 16 Dec 2011 13:18:11 +0000 (14:18 +0100)]
memcontrol(8): Fix wrong parenthesizing.

12 years agox86_64/MachintrABI: Use low-level INTR{EN,DIS} in intr_{setup,teardown}
Sepherosa Ziehau [Fri, 16 Dec 2011 09:20:00 +0000 (17:20 +0800)]
x86_64/MachintrABI: Use low-level INTR{EN,DIS} in intr_{setup,teardown}

intr_{setup,teardown} have already done enough verification for the
'intr' parameter

12 years agox86_64/icu: Add intr_{enable,disable} wrapper for ICU_INTR{EN,DIS}
Sepherosa Ziehau [Fri, 16 Dec 2011 08:52:38 +0000 (16:52 +0800)]
x86_64/icu: Add intr_{enable,disable} wrapper for ICU_INTR{EN,DIS}

- Add more assertion in icu_abi_intr_{enable,disable}()
- Augment icu_abi_intr_{setup,teardown}() w/ assertions

12 years agox86_64/ioapic_abi: Augment intr_{setup,teardown} w/ assertions
Sepherosa Ziehau [Fri, 16 Dec 2011 08:01:05 +0000 (16:01 +0800)]
x86_64/ioapic_abi: Augment intr_{setup,teardown} w/ assertions

12 years agox86_64/ioapic_abi: Augment intr_disable/intr_enable w/ assertions
Sepherosa Ziehau [Fri, 16 Dec 2011 07:21:44 +0000 (15:21 +0800)]
x86_64/ioapic_abi: Augment intr_disable/intr_enable w/ assertions

12 years agonexus_alloc_resource: Add missing rman_set_rid()
Sepherosa Ziehau [Fri, 16 Dec 2011 06:09:16 +0000 (14:09 +0800)]
nexus_alloc_resource: Add missing rman_set_rid()

12 years agonexus/intr: Change the wrong cpuid backtrace to assertion
Sepherosa Ziehau [Fri, 16 Dec 2011 03:08:03 +0000 (11:08 +0800)]
nexus/intr: Change the wrong cpuid backtrace to assertion

12 years agotip(1): Remove "register".
Sascha Wildner [Fri, 16 Dec 2011 04:30:51 +0000 (05:30 +0100)]
tip(1): Remove "register".

12 years agoVFS accounting: add a sync command
Francois Tigeot [Thu, 1 Dec 2011 12:43:23 +0000 (13:43 +0100)]
VFS accounting: add a sync command

* Kernel usage counter are not stored permanently on the filesystem,
  they need to be properly initialized from userland to return
  meaningful values

12 years agovquota(8): add a -h flag
Francois Tigeot [Sun, 27 Nov 2011 10:41:08 +0000 (11:41 +0100)]
vquota(8): add a -h flag

* humanize numbers where it makes sense

12 years agoAdd a NO_BINUTILS221 option (like NO_GCC41) to not build older binutils.
Sascha Wildner [Thu, 15 Dec 2011 09:57:57 +0000 (10:57 +0100)]
Add a NO_BINUTILS221 option (like NO_GCC41) to not build older binutils.

Reported-by: ftigeot