dragonfly.git
13 years agomille: Fix typo.
Peter Avalos [Wed, 23 Mar 2011 06:05:19 +0000 (17:05 +1100)]
mille: Fix typo.

13 years agosh: Fix typo in comment.
Peter Avalos [Sat, 5 Mar 2011 22:54:35 +0000 (12:54 -1000)]
sh: Fix typo in comment.

Obtained-from: FreeBSD

13 years agoRemove a years old attempt at a BSD licensed libiberty.
Sascha Wildner [Wed, 23 Mar 2011 22:40:20 +0000 (23:40 +0100)]
Remove a years old attempt at a BSD licensed libiberty.

This never gained traction and was never part of the build.

Since libiberty is only used by the GNU toolchain (included in binutils*,
gcc* and gdb), and given that the real work with the toolchain certainly
isn't in libiberty related things, this can go.

13 years agobinutils221: Fix some copy/paste errors.
Sascha Wildner [Wed, 23 Mar 2011 21:25:14 +0000 (22:25 +0100)]
binutils221: Fix some copy/paste errors.

13 years agobinutils221: Add the gnu/ building hierarchy.
Sascha Wildner [Wed, 23 Mar 2011 21:12:23 +0000 (22:12 +0100)]
binutils221: Add the gnu/ building hierarchy.

Submitted-by: John Marino <john@marino.st>
13 years agobinutils221: Fix an error and a warning.
Sascha Wildner [Wed, 23 Mar 2011 20:58:30 +0000 (21:58 +0100)]
binutils221: Fix an error and a warning.

Submitted-by: John Marino <john@marino.st>
13 years agobinutils221: Add some generated manual pages.
Sascha Wildner [Wed, 23 Mar 2011 20:56:12 +0000 (21:56 +0100)]
binutils221: Add some generated manual pages.

Submitted-by: John Marino <john@marino.st>
13 years agobinutils221: Add some DragonFly specific configuration stuff.
Sascha Wildner [Wed, 23 Mar 2011 20:50:50 +0000 (21:50 +0100)]
binutils221: Add some DragonFly specific configuration stuff.

Submitted-by: John Marino <john@marino.st>
13 years agobinutils221: Bring in some needed files instead of generating them.
Sascha Wildner [Wed, 23 Mar 2011 20:46:44 +0000 (21:46 +0100)]
binutils221: Bring in some needed files instead of generating them.

Submitted-by: John Marino <john@marino.st>
13 years agobinutils221: Add our READMEs.
Sascha Wildner [Wed, 23 Mar 2011 20:40:55 +0000 (21:40 +0100)]
binutils221: Add our READMEs.

Submitted-by: John Marino <john@marino.st>
13 years agoMerge branch 'vendor/BINUTILS221'
Sascha Wildner [Wed, 23 Mar 2011 20:14:59 +0000 (21:14 +0100)]
Merge branch 'vendor/BINUTILS221'

13 years agobinutils221: Bring in some more files on the vendor branch.
Sascha Wildner [Wed, 23 Mar 2011 20:13:13 +0000 (21:13 +0100)]
binutils221: Bring in some more files on the vendor branch.

13 years agoMerge branch 'vendor/BINUTILS221'
Sascha Wildner [Wed, 23 Mar 2011 19:23:06 +0000 (20:23 +0100)]
Merge branch 'vendor/BINUTILS221'

13 years agoImport binutils-2.21
Sascha Wildner [Wed, 23 Mar 2011 19:22:22 +0000 (20:22 +0100)]
Import binutils-2.21

13 years agoAdd memoryallocators(9) manpage to describe kernel memory allocators.
Venkatesh Srinivas [Wed, 23 Mar 2011 18:11:30 +0000 (11:11 -0700)]
Add memoryallocators(9) manpage to describe kernel memory allocators.

13 years agokernel - Major bridging functionality added (bug fixes 3)
Matthew Dillon [Wed, 23 Mar 2011 16:36:33 +0000 (09:36 -0700)]
kernel - Major bridging functionality added (bug fixes 3)

* When forwarding packets we do not retransmit the packet out the same
  interface it came in on, but this check was not taking into account
  bonding sets and could bounce a packet out a different interface on the
  same bonding set the packet came in on.

  This could result in loops for things like ARP broadcasts and cause
  intermediate ethernet switches to get confused as to which port a
  particular MAC is on.

* Change src_if == dst_if checks to compare MAC addresses instead, which
  solves the problem.

13 years agomptable: Make interrupt routing information logging consistent with PIR
Sepherosa Ziehau [Wed, 23 Mar 2011 12:41:02 +0000 (20:41 +0800)]
mptable: Make interrupt routing information logging consistent with PIR

13 years agoioapic: Raise MADT I/O APIC enumerator priority
Sepherosa Ziehau [Wed, 23 Mar 2011 12:33:35 +0000 (20:33 +0800)]
ioapic: Raise MADT I/O APIC enumerator priority

13 years agoioapic: Disable imen_dump() in new code
Sepherosa Ziehau [Wed, 23 Mar 2011 12:26:55 +0000 (20:26 +0800)]
ioapic: Disable imen_dump() in new code

13 years agoioapic: Rework I/O APIC APIC ID allocation
Sepherosa Ziehau [Wed, 23 Mar 2011 12:04:15 +0000 (20:04 +0800)]
ioapic: Rework I/O APIC APIC ID allocation

- I/O APIC's ID field in ID register contains only 4bits, so only 16
  I/O APICs should be allowed.
- All I/O APIC's APIC ID's lower 4bits (what we wrote to I/O APIC ID
  register) must be different from each other, this should be done
  even on xAPIC (e.g. Pentium 4), where I/O APIC's APIC IDs are not
  required to be different from what LAPIC's.

13 years agoioapic: Don't assume that BSP's APIC ID is 0
Sepherosa Ziehau [Wed, 23 Mar 2011 10:54:33 +0000 (18:54 +0800)]
ioapic: Don't assume that BSP's APIC ID is 0

13 years agomsdosfs: use size_t for unlen consistently instead of int.
Alexander Polakov [Mon, 21 Mar 2011 23:00:15 +0000 (02:00 +0300)]
msdosfs: use size_t for unlen consistently instead of int.

size_t is different from int on x86-64, which can lead
to weird effects.

Dragonfly-bug: <http://bugs.dragonflybsd.org/issue2027>

13 years agoacpi/x86_64: Properly configure ACPI interrupt model
Sepherosa Ziehau [Tue, 22 Mar 2011 11:10:07 +0000 (19:10 +0800)]
acpi/x86_64: Properly configure ACPI interrupt model

13 years agokernel - Reduce dsched console output
Matthew Dillon [Mon, 21 Mar 2011 21:36:24 +0000 (14:36 -0700)]
kernel - Reduce dsched console output

* Only print out 'No policy for ...' messages if bootverbose is set.

13 years agoioapic: Switch to new code by default
Sepherosa Ziehau [Mon, 21 Mar 2011 16:52:42 +0000 (00:52 +0800)]
ioapic: Switch to new code by default

13 years agoioapic: For limited I/O APIC mixed mode, delivery mode should always be fixed.
Sepherosa Ziehau [Mon, 21 Mar 2011 16:55:51 +0000 (00:55 +0800)]
ioapic: For limited I/O APIC mixed mode, delivery mode should always be fixed.

13 years ago8254: Setup interrupt properly for new I/O APIC code
Sepherosa Ziehau [Mon, 21 Mar 2011 16:06:30 +0000 (00:06 +0800)]
8254: Setup interrupt properly for new I/O APIC code

13 years ago8254: apic_8254_intr does not need to be global variable
Sepherosa Ziehau [Mon, 21 Mar 2011 14:39:16 +0000 (22:39 +0800)]
8254: apic_8254_intr does not need to be global variable

13 years agoemul/linux: Unbreak module building
Sepherosa Ziehau [Mon, 21 Mar 2011 13:58:04 +0000 (21:58 +0800)]
emul/linux: Unbreak module building

13 years agomptable: Verbose debug logging about "fixed interrupt routing"
Sepherosa Ziehau [Mon, 21 Mar 2011 13:41:31 +0000 (21:41 +0800)]
mptable: Verbose debug logging about "fixed interrupt routing"

13 years agoioapic: Don't allow interrupt source overrides to GSI 0 (ExtINT)
Sepherosa Ziehau [Mon, 21 Mar 2011 13:25:07 +0000 (21:25 +0800)]
ioapic: Don't allow interrupt source overrides to GSI 0 (ExtINT)

13 years agobinutils220: Fix a copy/paste error.
Sascha Wildner [Sun, 20 Mar 2011 15:28:32 +0000 (16:28 +0100)]
binutils220: Fix a copy/paste error.

Reported-by: John Marino <john@marino.st>
13 years agobinutils: Install the manpages of both binutils versions.
Sascha Wildner [Sun, 20 Mar 2011 12:57:56 +0000 (13:57 +0100)]
binutils: Install the manpages of both binutils versions.

Previously, 2.20's manpages were just copied over 2.17's.

Now it is like with gcc and friends: Install as ld217.1 and ld220.1,
for example, and use a ld.1 MLINKS for the default binutils.

Reported-by: John Marino <john@marino.st>
13 years agogcc44: Switch the rest of the MLINKS over to gcc44.
Sascha Wildner [Sun, 20 Mar 2011 10:49:48 +0000 (11:49 +0100)]
gcc44: Switch the rest of the MLINKS over to gcc44.

13 years agogcc44: Add a forgotten '+'.
Sascha Wildner [Sun, 20 Mar 2011 10:49:10 +0000 (11:49 +0100)]
gcc44: Add a forgotten '+'.

13 years agomptable: Always clear 'force_pci0' before setting/using it
Sepherosa Ziehau [Sun, 20 Mar 2011 07:56:02 +0000 (15:56 +0800)]
mptable: Always clear 'force_pci0' before setting/using it

13 years agomptable/ioapic: Properly routing PCI interrupts
Sepherosa Ziehau [Sun, 20 Mar 2011 06:40:30 +0000 (14:40 +0800)]
mptable/ioapic: Properly routing PCI interrupts

13 years agoioapic/abi: Mark unused ISA IRQs as reserved
Sepherosa Ziehau [Sun, 20 Mar 2011 04:37:45 +0000 (12:37 +0800)]
ioapic/abi: Mark unused ISA IRQs as reserved

13 years agoioapic: Let callers of pin_setup() to hold imen_spinlock
Sepherosa Ziehau [Sun, 20 Mar 2011 04:15:34 +0000 (12:15 +0800)]
ioapic: Let callers of pin_setup() to hold imen_spinlock

13 years agobinutils: Offer both readelf(1)'s based on BINUTILSVER's setting.
Sascha Wildner [Sat, 19 Mar 2011 15:57:27 +0000 (16:57 +0100)]
binutils: Offer both readelf(1)'s based on BINUTILSVER's setting.

Reported-by: John Marino <john@marino.st>
13 years agoioapic: Move MachIntrABI switching from ABI finalize to I/O APIC configure
Sepherosa Ziehau [Sat, 19 Mar 2011 11:11:10 +0000 (19:11 +0800)]
ioapic: Move MachIntrABI switching from ABI finalize to I/O APIC configure

13 years agoFix loading of a kernel that was linked with ld 2.20 on x86_64.
Sascha Wildner [Fri, 18 Mar 2011 21:05:22 +0000 (22:05 +0100)]
Fix loading of a kernel that was linked with ld 2.20 on x86_64.

The MAXPAGESIZE changed between binutils 2.17 and 2.20 from 0x100000
to 0x200000 for x86_64. But we have 0x100000 coded into our ldscript
for the kernel.

The real solution would be to specify "CONSTANT (MAXPAGESIZE)" in
the ldscript but unfortunately binutils 2.17 (at least our version;
later snapshots like 2.17.50 or 2.17.90 do) doesn't have support for
this keyword.

We will do that too once we get rid of binutils 2.17. Until then,
set max-page-size to 0x100000 as a workaround when linking on
x86_64.

13 years agoFix buildkernel without -j.
Sascha Wildner [Sat, 19 Mar 2011 08:17:29 +0000 (09:17 +0100)]
Fix buildkernel without -j.

One of the recent commits by sephe caused genassym.c to depend on
bus_if.h and device_if.h (via machintr.h via bus.h).

However, without -j, these headers would not be generated (from
the .m files) before genassym.c was compiled, causing the kernel
build to break.

As a fix, make genassym.c depend on these headers in the Makefile.

The interesting bit is that this is one of the cases where it
breaks without -j but _does_ work with -j 1 (read: one) due to
the different handling of no -j vs. -j 1 in make(1).

13 years agoapic: Initialize LAPIC before programming I/O APIC
Sepherosa Ziehau [Sat, 19 Mar 2011 07:47:20 +0000 (15:47 +0800)]
apic: Initialize LAPIC before programming I/O APIC

On the system without IMCR, I/O APIC is enabled when it is first accessed.
Before I/O APIC is enabled, LAPIC should be initialized.

13 years agolapic: Centralize LAPIC configuration
Sepherosa Ziehau [Sat, 19 Mar 2011 07:28:54 +0000 (15:28 +0800)]
lapic: Centralize LAPIC configuration

13 years agolapic_init: Use 'bsp' function parameter consistently
Sepherosa Ziehau [Sat, 19 Mar 2011 06:56:16 +0000 (14:56 +0800)]
lapic_init: Use 'bsp' function parameter consistently

13 years agolapic: Move LAPIC related vector installation into lapic_init()
Sepherosa Ziehau [Sat, 19 Mar 2011 06:46:36 +0000 (14:46 +0800)]
lapic: Move LAPIC related vector installation into lapic_init()

13 years agolapic: apic_initialize() -> lapic_init()
Sepherosa Ziehau [Sat, 19 Mar 2011 06:34:07 +0000 (14:34 +0800)]
lapic: apic_initialize() -> lapic_init()

13 years agoapic: Centralize IMCR present setting
Sepherosa Ziehau [Sat, 19 Mar 2011 05:19:35 +0000 (13:19 +0800)]
apic: Centralize IMCR present setting

13 years agoclock: Use irq number; More consistent with the above register_int()
Sepherosa Ziehau [Fri, 18 Mar 2011 14:48:00 +0000 (22:48 +0800)]
clock: Use irq number; More consistent with the above register_int()

13 years agokernel: Fix -Wundef in a number of places.
Sascha Wildner [Fri, 18 Mar 2011 19:41:31 +0000 (20:41 +0100)]
kernel: Fix -Wundef in a number of places.

13 years agoHook some forgotten Citrus tools into the build.
Sascha Wildner [Fri, 18 Mar 2011 17:49:27 +0000 (18:49 +0100)]
Hook some forgotten Citrus tools into the build.

13 years agoioapic/abi: Log interrupt trigger mode changes
Sepherosa Ziehau [Fri, 18 Mar 2011 14:23:48 +0000 (22:23 +0800)]
ioapic/abi: Log interrupt trigger mode changes

It is mainly used to locate missing bus_config_intr call

13 years agoicu/abi: Fix typo
Sepherosa Ziehau [Fri, 18 Mar 2011 14:08:44 +0000 (22:08 +0800)]
icu/abi: Fix typo

13 years agomptable/pci: Configure interrupts after routing
Sepherosa Ziehau [Fri, 18 Mar 2011 09:52:52 +0000 (17:52 +0800)]
mptable/pci: Configure interrupts after routing

13 years agonexus: Implement bus_config_intr bus method
Sepherosa Ziehau [Fri, 18 Mar 2011 09:52:29 +0000 (17:52 +0800)]
nexus: Implement bus_config_intr bus method

13 years agomachintr: Add intr_config interface
Sepherosa Ziehau [Fri, 18 Mar 2011 09:05:44 +0000 (17:05 +0800)]
machintr: Add intr_config interface

This interface is used to change pre-configured interrupt's trigger
mode and polarity.

13 years agoioapic: Properly setup I/O APIC pin according to the saved information
Sepherosa Ziehau [Fri, 18 Mar 2011 07:17:39 +0000 (15:17 +0800)]
ioapic: Properly setup I/O APIC pin according to the saved information

13 years agoioapic/abi: Save IRQ to GSI mapping
Sepherosa Ziehau [Fri, 18 Mar 2011 05:59:50 +0000 (13:59 +0800)]
ioapic/abi: Save IRQ to GSI mapping

13 years agoioapic/abi: Save interrupt polarity
Sepherosa Ziehau [Fri, 18 Mar 2011 05:25:12 +0000 (13:25 +0800)]
ioapic/abi: Save interrupt polarity

13 years agoioapic: During initmap, only GSIs should be configured.
Sepherosa Ziehau [Thu, 17 Mar 2011 11:28:22 +0000 (19:28 +0800)]
ioapic: During initmap, only GSIs should be configured.

13 years agopowernow.4: Fix some bugs (typo, missing sysctl, style).
Sascha Wildner [Thu, 17 Mar 2011 17:39:42 +0000 (18:39 +0100)]
powernow.4: Fix some bugs (typo, missing sysctl, style).

While doing this, fix the est(4)'s manual page in a similar manner.

Reported-by: Max Herrgard <herrgard@gmail.com>
13 years agoioapic: Setup I/O APIC according to the saved information. Stage 1/2
Sepherosa Ziehau [Thu, 17 Mar 2011 10:55:41 +0000 (18:55 +0800)]
ioapic: Setup I/O APIC according to the saved information.  Stage 1/2

13 years agoioapic: Save interrupt source override information
Sepherosa Ziehau [Thu, 17 Mar 2011 07:48:53 +0000 (15:48 +0800)]
ioapic: Save interrupt source override information

13 years agoioapic: Save I/O APIC information for later configuration
Sepherosa Ziehau [Thu, 17 Mar 2011 06:45:45 +0000 (14:45 +0800)]
ioapic: Save I/O APIC information for later configuration

13 years agomptable: Get pin count of I/O APIC and calculate GSI base accordingly
Sepherosa Ziehau [Thu, 17 Mar 2011 05:37:43 +0000 (13:37 +0800)]
mptable: Get pin count of I/O APIC and calculate GSI base accordingly

13 years agokernel: In the x86_64 kernel, add a missing include to trap.c.
Sascha Wildner [Thu, 17 Mar 2011 06:07:04 +0000 (07:07 +0100)]
kernel: In the x86_64 kernel, add a missing include to trap.c.

Some bits of code in trap() regarding the handling of T_NMI were not
compiled in due to NISA not being defined.

While I'm here, put some more code in "#if NISA > 0", like it is for
i386.

13 years agokernel: Fix x86_64 building without 'options DDB'.
Sascha Wildner [Thu, 17 Mar 2011 01:50:41 +0000 (02:50 +0100)]
kernel: Fix x86_64 building without 'options DDB'.

13 years agokernel: Improve #ifdef a bit.
Sascha Wildner [Thu, 17 Mar 2011 01:20:49 +0000 (02:20 +0100)]
kernel: Improve #ifdef a bit.

13 years agokernel: Fix building without 'options P1003_1B'.
Sascha Wildner [Wed, 16 Mar 2011 22:05:05 +0000 (23:05 +0100)]
kernel: Fix building without 'options P1003_1B'.

13 years agokernel: Fix building without 'options INVARIANTS'.
Sascha Wildner [Wed, 16 Mar 2011 22:03:39 +0000 (23:03 +0100)]
kernel: Fix building without 'options INVARIANTS'.

13 years agokernel: Fix building without 'options INET'.
Sascha Wildner [Wed, 16 Mar 2011 22:01:46 +0000 (23:01 +0100)]
kernel: Fix building without 'options INET'.

13 years agoacpi/pstate: Adjust FID/VID verification for AMD 0Fh family CPUs
Sepherosa Ziehau [Wed, 16 Mar 2011 13:28:16 +0000 (21:28 +0800)]
acpi/pstate: Adjust FID/VID verification for AMD 0Fh family CPUs

- If min/max are same, then there is only one P-State, which does
  not make sense to have the P-State sysctl tree.
- If the first and last P-State entres do not match max/min, then
  just log a warning message.
- The original FID/VID checks should only be applied to intermediate
  P-States.
- Correct FID check against min FID.

13 years agoacpi/pstate: Fix error logging messages
Sepherosa Ziehau [Wed, 16 Mar 2011 12:13:42 +0000 (20:13 +0800)]
acpi/pstate: Fix error logging messages

13 years agokernel -- Remove mplock2.h header from files not using the mplock.
Venkatesh Srinivas [Wed, 16 Mar 2011 00:52:57 +0000 (17:52 -0700)]
kernel -- Remove mplock2.h header from files not using the mplock.

13 years agokernel -- Mark MQUEUE filterops MPSAFE.
Venkatesh Srinivas [Wed, 16 Mar 2011 00:44:00 +0000 (17:44 -0700)]
kernel -- Mark MQUEUE filterops MPSAFE.

MQ filterops use lockmgr locks to synchronize; don't need MPLOCK.

13 years agokernel -- Remove MPlock in sys_pselect().
Venkatesh Srinivas [Wed, 16 Mar 2011 00:42:51 +0000 (17:42 -0700)]
kernel -- Remove MPlock in sys_pselect().

Signal mask is synchronized by per-process token, not MPLOCK.

13 years agokernel - Remove no longer needed MCLSHIFT kernel option.
Joe Talbott [Tue, 15 Mar 2011 15:14:40 +0000 (11:14 -0400)]
kernel - Remove no longer needed MCLSHIFT kernel option.

13 years agobsd-family-tree: Sync with FreeBSD.
Sascha Wildner [Tue, 15 Mar 2011 02:50:10 +0000 (03:50 +0100)]
bsd-family-tree: Sync with FreeBSD.

13 years agoSync zoneinfo database with tzdata2011d from elsie.nci.nih.gov
Sascha Wildner [Tue, 15 Mar 2011 02:29:17 +0000 (03:29 +0100)]
Sync zoneinfo database with tzdata2011d from elsie.nci.nih.gov

australasia:    8.22 -> 8.23
etcetera:       8.2  -> 8.3
europe:         8.27 -> 8.28
northamerica:   8.41 -> 8.42

* australasia: Samoa's DST will end on April 2, instead of April 3, as
    previously assumed. Thanks to Raymond Hughes for information on the
    change.

* etcetera: Remove obsolete material on angle brackets in the TZ
    environment variable.

* europe: Due to a nationwide exam on March 27, Turkey will change into
    summer time zone one day later.

* northamerica: Cuba will start DST on March 20, one week later than
    previously assumed. Thanks to Steffen Thorsen for the first report
    of the change.

13 years agoUPGRADING: Say that a full build is actually a must for gcc41 -> gcc44.
Sascha Wildner [Mon, 14 Mar 2011 17:01:49 +0000 (18:01 +0100)]
UPGRADING: Say that a full build is actually a must for gcc41 -> gcc44.

In order for the fix for silencing the inline warnings to be picked
up, a new cross-compiler must be built (which will later be used for
compiling the kernel where the fix is needed). This won't work with
quickworld since quickworld skips the cross-tools step.

Reported-by: tuxillo
13 years agoioapic: Add tunable hw.ioapic_use_old
Sepherosa Ziehau [Mon, 14 Mar 2011 13:57:14 +0000 (21:57 +0800)]
ioapic: Add tunable hw.ioapic_use_old

Mainly to ease following new I/O APIC related code testing.

13 years agoioapic: Remove unused TUNABLE_INT
Sepherosa Ziehau [Mon, 14 Mar 2011 13:23:12 +0000 (21:23 +0800)]
ioapic: Remove unused TUNABLE_INT

Since apic_io_enable will be needed very early during boot,
its value is fetched explicitly by calling TUNABLE_FETCH_INT()

13 years agombuf - Factor common code out of m_getjcl() and m_getcl().
Joe Talbott [Wed, 9 Mar 2011 15:01:47 +0000 (10:01 -0500)]
mbuf - Factor common code out of m_getjcl() and m_getcl().

13 years agombuf - Fix m_getjcl()'s size argument's type.
Joe Talbott [Tue, 8 Mar 2011 19:31:11 +0000 (14:31 -0500)]
mbuf - Fix m_getjcl()'s size argument's type.

Use size_t in both the declaration and definition of m_getjcl().

Reported-By: Thomas Nikolajsen <thomas.nikolajsen@mail.dk>
13 years agowpi(4) - Use MJUMPAGESIZE mbuf clusters.
Joe Talbott [Fri, 4 Mar 2011 12:31:05 +0000 (07:31 -0500)]
wpi(4) - Use MJUMPAGESIZE mbuf clusters.

Based-On: FreeBSD

13 years agombuf - Add MJUMPAGESIZE mbuf cluster support.
Joe Talbott [Fri, 4 Mar 2011 12:28:29 +0000 (07:28 -0500)]
mbuf - Add MJUMPAGESIZE mbuf cluster support.

This is needed by Intel WiFi chipsets which require larger than usual
clusters.

Revert MCLSHIFT back to 11 to reduce mbuf cluster space usage and make
non-Intel Wifi NICs work without needing to adjust MCLSHIFT.

13 years agoMerge branch 'master' of git://crater.dragonflybsd.org/dragonfly
Joe Talbott [Mon, 14 Mar 2011 10:34:43 +0000 (06:34 -0400)]
Merge branch 'master' of git://crater.dragonflybsd.org/dragonfly

13 years agogcc44: Prevent __stack_chk_fail_local references from being hidden.
Sascha Wildner [Mon, 14 Mar 2011 00:13:37 +0000 (01:13 +0100)]
gcc44: Prevent __stack_chk_fail_local references from being hidden.

Dragonfly-bug: <http://bugs.dragonflybsd.org/issue2024>

13 years agoAdd missing wcsdup() prototype to <wchar.h>.
Sascha Wildner [Thu, 10 Mar 2011 21:56:22 +0000 (22:56 +0100)]
Add missing wcsdup() prototype to <wchar.h>.

This allows C++ programs to access this function at all.

Reported-by: Pierre Abbat <phma@phma.optus.nu>
13 years agokernel - missing PRELE() in ptrace(PT_DETACH).
YONETANI Tomokazu [Thu, 10 Mar 2011 10:31:04 +0000 (19:31 +0900)]
kernel - missing PRELE() in ptrace(PT_DETACH).

13 years agoamd(8): Fix a warning from the days when NULL was 0.
Sascha Wildner [Thu, 10 Mar 2011 03:21:26 +0000 (04:21 +0100)]
amd(8): Fix a warning from the days when NULL was 0.

13 years agoFix compilation with gcc44 and -fstack-protector.
Sascha Wildner [Thu, 10 Mar 2011 01:34:18 +0000 (02:34 +0100)]
Fix compilation with gcc44 and -fstack-protector.

Reported-by: various people
13 years agoioapic: Function renaming
Sepherosa Ziehau [Wed, 9 Mar 2011 14:22:25 +0000 (22:22 +0800)]
ioapic: Function renaming

13 years agolapic: Record the max LAPIC APIC ID
Sepherosa Ziehau [Wed, 9 Mar 2011 13:07:28 +0000 (21:07 +0800)]
lapic: Record the max LAPIC APIC ID

13 years agokernel - Add vm.cache_vmspaces boot-time tunable
Matthew Dillon [Wed, 9 Mar 2011 02:19:56 +0000 (18:19 -0800)]
kernel - Add vm.cache_vmspaces boot-time tunable

* Add vm.cache_vmspaces boot-time tunable, defaulting to 32 objects.
  This controls how many free vmspace+pmap structures can be maintained
  in the objcache.

* Change the sysref API a bit.  mag_capacity becomes nom_cache.

Related-to: IRC conversion thesjg & vsrinivas

13 years agokernel - Add lwkt.cache_threads boot-time tunable
Matthew Dillon [Wed, 9 Mar 2011 02:01:08 +0000 (18:01 -0800)]
kernel - Add lwkt.cache_threads boot-time tunable

* Add lwkt.cache_threads boot-time tunable.  This has to be set in
  /boot/loader.conf and controls how large a thread+kstack cache the
  kernel should maintain.

* Increase the default thread+kstack cache from 6 to 32 threads.

* Change the objcache_create*() API a little.  Instead of passing a
  mag_capacity field pass a nom_cache (nominal free objects to keep cached)
  field.

* Change the mag_capacity calculation to take into account small caches
  (the exec args cache) and remove the too-small-for-ncpus warning.

Related-to: IRC conversion thesjg & vsrinivas

13 years agokernel - Add kern.zone_cache sysctl
Matthew Dillon [Wed, 9 Mar 2011 01:14:32 +0000 (17:14 -0800)]
kernel - Add kern.zone_cache sysctl

* Add a sysctl to adjust how many empty zones each cpu caches for the
  slab allocator.  sysctl kern.zone_cache.

* Increase the default from 2 to 32 zones.

Related-to: IRC conversion thesjg & vsrinivas

13 years agoMerge branch 'master' of git://crater.dragonflybsd.org/dragonfly
Joe Talbott [Tue, 8 Mar 2011 19:41:45 +0000 (14:41 -0500)]
Merge branch 'master' of git://crater.dragonflybsd.org/dragonfly

13 years agokernel - Fix null pointer panic related to setproctitle()
Matthew Dillon [Tue, 8 Mar 2011 00:57:47 +0000 (16:57 -0800)]
kernel - Fix null pointer panic related to setproctitle()

* Fix a missing NULL check when setproctitle() is called for a
  program whos args were previously too large to fit in the
  per-process p_args cache.

Reported-by: John Marino <dragonflybsd@marino.st>