23 months agotest - test commit 2
Matthew Dillon [Wed, 15 Jun 2011 06:37:29 +0000]
test - test commit 2

23 months agotest - test commit
Matthew Dillon [Wed, 15 Jun 2011 06:25:08 +0000]
test - test commit

23 months agoMerge branch 'master' of /repository/git/dragonfly
Venkatesh Srinivas [Tue, 14 Jun 2011 14:10:42 +0000]
Merge branch 'master' of /repository/git/dragonfly

23 months agokernel -- vm_object DEBUG_LOCKS: Record file/line of vm_object holds.
Venkatesh Srinivas [Tue, 14 Jun 2011 14:09:43 +0000]
kernel -- vm_object DEBUG_LOCKS: Record file/line of vm_object holds.

23 months agoMerge branch 'devel'
Sepherosa Ziehau [Tue, 14 Jun 2011 08:42:37 +0000]
Merge branch 'devel'

23 months agoMerge branch 'devel' (early part)
Sepherosa Ziehau [Tue, 14 Jun 2011 08:42:35 +0000]
Merge branch 'devel' (early part)

23 months agoMerge branch 'devel' (early part)
Sepherosa Ziehau [Tue, 14 Jun 2011 08:42:33 +0000]
Merge branch 'devel' (early part)

23 months agoMerge branch 'devel' (early part)
Sepherosa Ziehau [Tue, 14 Jun 2011 08:42:31 +0000]
Merge branch 'devel' (early part)

23 months agoMerge branch 'devel' (early part)
Sepherosa Ziehau [Tue, 14 Jun 2011 08:42:28 +0000]
Merge branch 'devel' (early part)

23 months agoi386: Remove unused macros in apic/apicvar.h
Sepherosa Ziehau [Tue, 14 Jun 2011 08:41:06 +0000]
i386: Remove unused macros in apic/apicvar.h

23 months agoi386: Don't log cores per CPU and logical CPUs per core
Sepherosa Ziehau [Tue, 14 Jun 2011 08:33:25 +0000]
i386: Don't log cores per CPU and logical CPUs per core

23 months agox86_64: Remove unused macros in apic/apicvar.h
Sepherosa Ziehau [Tue, 14 Jun 2011 08:18:31 +0000]
x86_64: Remove unused macros in apic/apicvar.h

23 months agox86_64: Don't log cores per CPU and logical CPUs per core
Sepherosa Ziehau [Tue, 14 Jun 2011 07:54:19 +0000]
x86_64: Don't log cores per CPU and logical CPUs per core

For Intel CPUs, the cores per CPU we printed probably is wrong; it
merely means the max cores per CPU.  Since these two values are not
used by any effective code at all, these confusing logging is removed.

If correct cores per CPU is needed, it probably should be done after
lapic_config().

23 months agoacpi: AE_NOT_EXIST is quite common return value of AcpiReset()
Sepherosa Ziehau [Tue, 14 Jun 2011 06:43:52 +0000]
acpi: AE_NOT_EXIST is quite common return value of AcpiReset()

23 months agokernel -- vm: Restore vm_token in page fault path.
Venkatesh Srinivas [Tue, 14 Jun 2011 03:59:59 +0000]
kernel -- vm: Restore vm_token in page fault path.

This partly reverts b4460ab356b9d7f1bd11c8badbf2a6dc97a7776f. The vm_object has
not been fully tokenized, so removing vm_token takes there was premature.

23 months agokernel: Move aesni(4) and padlock(4) from sys/crypto to sys/dev/crypto.
Sascha Wildner [Sun, 12 Jun 2011 22:09:48 +0000]
kernel: Move aesni(4) and padlock(4) from sys/crypto to sys/dev/crypto.

Pointed-out-by: alexh

23 months agonrelease: Change back to building an ISO for the LiveDVD, too.
Sascha Wildner [Mon, 13 Jun 2011 18:29:00 +0000]
nrelease: Change back to building an ISO for the LiveDVD, too.

The reasons are:

* People have boxes that don't support booting off USB, yet want the
  convenience of having Xorg installed etc.

* People want to boot this from virtual machines, and thise want ISOs.

23 months agox86_64: Unbreak UP kernel building by moving NAPICID around
Sepherosa Ziehau [Mon, 13 Jun 2011 11:18:50 +0000]
x86_64: Unbreak UP kernel building by moving NAPICID around

23 months agox86_64: Remove unused declaration in apicvar.h
Sepherosa Ziehau [Mon, 13 Jun 2011 11:12:48 +0000]
x86_64: Remove unused declaration in apicvar.h

23 months agoi386: Unbreak UP kernel building by moving NAPICID around
Sepherosa Ziehau [Mon, 13 Jun 2011 11:13:21 +0000]
i386: Unbreak UP kernel building by moving NAPICID around

23 months agoi386: Remove unused declaration in apicvar.h
Sepherosa Ziehau [Mon, 13 Jun 2011 11:03:32 +0000]
i386: Remove unused declaration in apicvar.h

23 months agoi386/ioapic: Remove unused global variable declaration
Sepherosa Ziehau [Sun, 12 Jun 2011 10:55:49 +0000]
i386/ioapic: Remove unused global variable declaration

23 months agoi386/ioapic: Staticize ioapic_config()
Sepherosa Ziehau [Sun, 12 Jun 2011 10:55:03 +0000]
i386/ioapic: Staticize ioapic_config()

23 months agoi386/ioapic: Cleanup header inclusion
Sepherosa Ziehau [Sun, 12 Jun 2011 10:53:17 +0000]
i386/ioapic: Cleanup header inclusion

23 months agobsd-family-tree: Sync with FreeBSD.
Sascha Wildner [Sun, 12 Jun 2011 08:58:50 +0000]
bsd-family-tree: Sync with FreeBSD.

23 months agokernel - Fix directory scanning bug in Samba
Matthew Dillon [Sat, 11 Jun 2011 19:13:20 +0000]
kernel - Fix directory scanning bug in Samba

* Bring in the patch from FreeBSD PR 78953

Taken-from: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/78953
Reported-by: uv <uv.negativa@gmail.com>

23 months agokernel - Fix a 'vm_page_unhold: hold count < 0' panic in kern_execve()
Matthew Dillon [Thu, 9 Jun 2011 20:28:08 +0000]
kernel - Fix a 'vm_page_unhold: hold count < 0' panic in kern_execve()

* imgp->firstpage is preloaded with lwbuf storage but we failed to NULL
  it out on error, causing the code to later attempt to release a bogus
  lwbuf.

* Fixes a hold count panic on random vm_page's.

23 months agokernel -- vm: Restore vm_token in page fault path.
Venkatesh Srinivas [Tue, 14 Jun 2011 03:59:59 +0000]
kernel -- vm: Restore vm_token in page fault path.

This partly reverts b4460ab356b9d7f1bd11c8badbf2a6dc97a7776f. The vm_object has
not been fully tokenized, so removing vm_token takes there was premature.

23 months agokernel: Move aesni(4) and padlock(4) from sys/crypto to sys/dev/crypto.
Sascha Wildner [Sun, 12 Jun 2011 22:09:48 +0000]
kernel: Move aesni(4) and padlock(4) from sys/crypto to sys/dev/crypto.

Pointed-out-by: alexh

23 months agonrelease: Change back to building an ISO for the LiveDVD, too.
Sascha Wildner [Mon, 13 Jun 2011 18:29:00 +0000]
nrelease: Change back to building an ISO for the LiveDVD, too.

The reasons are:

* People have boxes that don't support booting off USB, yet want the
  convenience of having Xorg installed etc.

* People want to boot this from virtual machines, and thise want ISOs.

23 months agox86_64: Unbreak UP kernel building by moving NAPICID around
Sepherosa Ziehau [Mon, 13 Jun 2011 11:18:50 +0000]
x86_64: Unbreak UP kernel building by moving NAPICID around

23 months agox86_64: Remove unused declaration in apicvar.h
Sepherosa Ziehau [Mon, 13 Jun 2011 11:12:48 +0000]
x86_64: Remove unused declaration in apicvar.h

23 months agoi386: Unbreak UP kernel building by moving NAPICID around
Sepherosa Ziehau [Mon, 13 Jun 2011 11:13:21 +0000]
i386: Unbreak UP kernel building by moving NAPICID around

23 months agoi386: Remove unused declaration in apicvar.h
Sepherosa Ziehau [Mon, 13 Jun 2011 11:03:32 +0000]
i386: Remove unused declaration in apicvar.h

23 months agoi386/ioapic: Remove unused global variable declaration
Sepherosa Ziehau [Sun, 12 Jun 2011 10:55:49 +0000]
i386/ioapic: Remove unused global variable declaration

23 months agoi386/ioapic: Staticize ioapic_config()
Sepherosa Ziehau [Sun, 12 Jun 2011 10:55:03 +0000]
i386/ioapic: Staticize ioapic_config()

23 months agoi386/ioapic: Cleanup header inclusion
Sepherosa Ziehau [Sun, 12 Jun 2011 10:53:17 +0000]
i386/ioapic: Cleanup header inclusion

23 months agobsd-family-tree: Sync with FreeBSD.
Sascha Wildner [Sun, 12 Jun 2011 08:58:50 +0000]
bsd-family-tree: Sync with FreeBSD.

23 months agokernel - Fix directory scanning bug in Samba
Matthew Dillon [Sat, 11 Jun 2011 19:13:20 +0000]
kernel - Fix directory scanning bug in Samba

* Bring in the patch from FreeBSD PR 78953

Taken-from: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/78953
Reported-by: uv <uv.negativa@gmail.com>

23 months agotoken.9: Some cleanup.
Sascha Wildner [Sat, 11 Jun 2011 01:02:11 +0000]
token.9: Some cleanup.

* Add missing MLINKS for lwkt_token_swap().

* Start sentences on a new line.

* Trailing whitespace removal.

* Bump date.

23 months agokernel - do not have hold ref on object across a vm_map_split()
Matthew Dillon [Fri, 10 Jun 2011 17:35:24 +0000]
kernel - do not have hold ref on object across a vm_map_split()

* Just use vm_object_lock() (which uses a pool token) and do not hold
  a count on the object which can cause a deadlock when vm_map_split()
  tries to destroy the original object.

Found-by: Venkatesh Srinivas <me@endeavour.zapto.org>

23 months agokernel - Fix MP races in recent vm_object work
Matthew Dillon [Fri, 10 Jun 2011 07:32:22 +0000]
kernel - Fix MP races in recent vm_object work

* lwkt_token_swap() needs a critical section to ensure that an interrupt
  does not catch it mid-swap.

* Adjust vm_object_terminate() and vm_object_vnterminate() mechanics to
  require that the object be locked and to eat the lock.

* Use vm_object_hold/drop in vm_map_copy_entry() (object must be locked
  upon call to vm_object_collapse()).

* Acquire object locks in various places and swap the token order as
  needed to chain locks in various loops.

* Shift some code around in vm_object.c

23 months agokernel - make vm_add_new_page() static
Matthew Dillon [Thu, 9 Jun 2011 20:34:10 +0000]
kernel - make vm_add_new_page() static

* Make vm_add_new_page() a static function

23 months agokernel - Fix a 'vm_page_unhold: hold count < 0' panic in kern_execve()
Matthew Dillon [Thu, 9 Jun 2011 20:28:08 +0000]
kernel - Fix a 'vm_page_unhold: hold count < 0' panic in kern_execve()

* imgp->firstpage is preloaded with lwbuf storage but we failed to NULL
  it out on error, causing the code to later attempt to release a bogus
  lwbuf.

* Fixes a hold count panic on random vm_page's.

23 months agokernel -- vm: Mark vm_contig_pg_free and vm_contig_pg_kmap static.
Venkatesh Srinivas [Thu, 9 Jun 2011 19:41:41 +0000]
kernel -- vm: Mark vm_contig_pg_free and vm_contig_pg_kmap static.

23 months agoDocument lwkt_token_swap in token(9).
Venkatesh Srinivas [Thu, 9 Jun 2011 15:34:23 +0000]
Document lwkt_token_swap in token(9).

23 months agokernel -- Implement lwkt_token_swap; swaps most recent tokens in tokref stack.
Venkatesh Srinivas [Thu, 9 Jun 2011 15:31:00 +0000]
kernel -- Implement lwkt_token_swap; swaps most recent tokens in tokref stack.

23 months agokernel -- Remove vestigial token flags field.
Venkatesh Srinivas [Thu, 9 Jun 2011 15:11:34 +0000]
kernel -- Remove vestigial token flags field.

23 months agox86_64/ioapic: Staticize ioapic_config()
Sepherosa Ziehau [Thu, 9 Jun 2011 09:35:33 +0000]
x86_64/ioapic: Staticize ioapic_config()

23 months agox86_64/ioapic: Cleanup header inclusion
Sepherosa Ziehau [Thu, 9 Jun 2011 09:29:22 +0000]
x86_64/ioapic: Cleanup header inclusion

23 months agoi386/mptable: Always dump MPTABLE PCI interrupt routing information
Sepherosa Ziehau [Thu, 9 Jun 2011 07:31:27 +0000]
i386/mptable: Always dump MPTABLE PCI interrupt routing information

23 months agoi386/lapic: lapic_map() should take vm_paddr_t instead of vm_offset_t
Sepherosa Ziehau [Thu, 9 Jun 2011 07:06:24 +0000]
i386/lapic: lapic_map() should take vm_paddr_t instead of vm_offset_t

23 months agoi386/madt: Cleanup interrupt source override processing
Sepherosa Ziehau [Thu, 9 Jun 2011 06:49:24 +0000]
i386/madt: Cleanup interrupt source override processing

23 months agoi386/acpi: Remove unnecessary headers
Sepherosa Ziehau [Thu, 9 Jun 2011 06:36:10 +0000]
i386/acpi: Remove unnecessary headers

23 months agoi386/lapic: Include <machine/smp.h> for smp_active_mask
Sepherosa Ziehau [Thu, 9 Jun 2011 06:28:09 +0000]
i386/lapic: Include <machine/smp.h> for smp_active_mask

23 months agokernel - Allow signal delivery via KQ even if the process SIG_IGN's the signal
Samuel J. Greear [Thu, 9 Jun 2011 07:34:27 +0000]
kernel - Allow signal delivery via KQ even if the process SIG_IGN's the signal

Reported-by: swildner@

23 months agoMove in6_addr's s6_addr16 and s6_addr32 definitions to __BSD_VISIBLE.
Venkatesh Srinivas [Thu, 9 Jun 2011 02:06:38 +0000]
Move in6_addr's s6_addr16 and s6_addr32 definitions to __BSD_VISIBLE.

23 months agox86_64/mptable: Always dump MPTABLE PCI interrupt routing information
Sepherosa Ziehau [Wed, 8 Jun 2011 08:42:02 +0000]
x86_64/mptable: Always dump MPTABLE PCI interrupt routing information

23 months agox86_64/lapic: lapic_map() should take vm_paddr_t instead of vm_offset_t
Sepherosa Ziehau [Wed, 8 Jun 2011 08:28:26 +0000]
x86_64/lapic: lapic_map() should take vm_paddr_t instead of vm_offset_t

23 months agox86_64/madt: Cleanup interrupt source override processing
Sepherosa Ziehau [Wed, 8 Jun 2011 06:59:00 +0000]
x86_64/madt: Cleanup interrupt source override processing

23 months agox86_64/acpi: Remove unnecessary headers
Sepherosa Ziehau [Wed, 8 Jun 2011 06:26:50 +0000]
x86_64/acpi: Remove unnecessary headers

23 months agox86_64/lapic: Include <machine/smp.h> for smp_active_mask
Sepherosa Ziehau [Wed, 8 Jun 2011 06:26:13 +0000]
x86_64/lapic: Include <machine/smp.h> for smp_active_mask

23 months agoworld - Fix buildworld after ifnet changes
Matthew Dillon [Wed, 8 Jun 2011 02:09:32 +0000]
world - Fix buildworld after ifnet changes

* Use the _KERNEL_STRUCTURES mechanic to conditionalize struct ifnet
  and related structures needed by buildworld.

Reported-by: matthiasr

23 months agokernel - Serialize ifioctl() with a mutex
Matthew Dillon [Tue, 7 Jun 2011 20:50:40 +0000]
kernel - Serialize ifioctl() with a mutex

* ifioctl() calls (aka via ifconfig) make various assumptions about the
  stability of certain data structures and can panic otherwise.  Concurrent
  calls to ifioctl via ifconfig can create inconsistencies in the ifnet
  structure.

* Rearrange the ifioctl() code into a fall-through modem, add a struct mtx
  to the ifnet structure, and acquire and release the mutex in ifioctl()
  to enforce stability relative to concurrent ifconfig/ioctl commands
  issued on the interface.

* Fixes a panic reproduced via a while(1):

  while (1)
  echo -n x
  ifconfig re0 inet6 fe80::201:2eff:fe31:5469%re0 &
  ifconfig re0 inet6 fe80::201:2eff:fe31:5469%re0 delete &
  sleep 0.1
  end

* May fix other related panics.

NOTE: This mutex does not protect internal data structures related to
      network operation.  It is currently being used strictly to serialize
      ifconfig style operations on the interface.

Reported-by: Francois Tigeot <ftigeot@wolfpond.org>

23 months ago<vm/vm_object.h>: Some little style cleanup.
Sascha Wildner [Tue, 7 Jun 2011 20:28:37 +0000]
<vm/vm_object.h>: Some little style cleanup.

23 months agokernel -- vm_object locking: Interlock vm_object work in vm_fault.c
Venkatesh Srinivas [Tue, 7 Jun 2011 20:13:34 +0000]
kernel -- vm_object locking: Interlock vm_object work in vm_fault.c
and vm_map.c with per-object token. Handle NULL objects for _hold and _drop.

23 months agoi386: Allow UP kernel to use LAPIC timer and I/O APIC
Sepherosa Ziehau [Mon, 6 Jun 2011 11:38:24 +0000]
i386: Allow UP kernel to use LAPIC timer and I/O APIC

23 months agoi386: Remove unnecessary #ifdef SMP from files compiled with options SMP
Sepherosa Ziehau [Mon, 6 Jun 2011 10:18:45 +0000]
i386: Remove unnecessary #ifdef SMP from files compiled with options SMP

23 months agokernel: Add a final p_lock wait loop before kfree'ing the process
YONETANI Tomokazu [Mon, 6 Jun 2011 05:09:04 +0000]
kernel: Add a final p_lock wait loop before kfree'ing the process

Since p_lock can be acquired during the process removal, there
needs to be a final wait loop after the proc has been removed
from all queues, just before the kfree(p).  It will be a very
rare case but it definitely can still occur if e.g. the SYSCTL_OUT
code blocks on a VM fault or something like that.

Requested-by: dillon@
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1996>

23 months agoi386: Split mp_enable() into multiple SYSINITs
Sepherosa Ziehau [Sat, 4 Jun 2011 13:29:32 +0000]
i386: Split mp_enable() into multiple SYSINITs

23 months agoi386: Split cpu_startup() into pic_finish() and cpu_finish()
Sepherosa Ziehau [Sat, 4 Jun 2011 12:00:43 +0000]
i386: Split cpu_startup() into pic_finish() and cpu_finish()

23 months agoi386: Prepare mp_enable() for multi-stage procedure segmentation
Sepherosa Ziehau [Sat, 4 Jun 2011 11:47:24 +0000]
i386: Prepare mp_enable() for multi-stage procedure segmentation

23 months agoi386: Move base_memory from mp_machdep.c to machdep.c
Sepherosa Ziehau [Thu, 2 Jun 2011 12:10:41 +0000]
i386: Move base_memory from mp_machdep.c to machdep.c

23 months agocoretemp(4): Sync with FreeBSD.
Sascha Wildner [Fri, 3 Jun 2011 12:42:50 +0000]
coretemp(4): Sync with FreeBSD.

23 months agokernel: Add rdmsr_safe() in preparation for the coretemp(4) update.
Sascha Wildner [Fri, 3 Jun 2011 12:42:25 +0000]
kernel: Add rdmsr_safe() in preparation for the coretemp(4) update.

23 months agox86_64: Allow UP kernel to use LAPIC timer and I/O APIC
Sepherosa Ziehau [Fri, 3 Jun 2011 09:10:10 +0000]
x86_64: Allow UP kernel to use LAPIC timer and I/O APIC

23 months agox86_64: Remove unnecessary #ifdef SMP from files compiled with options SMP
Sepherosa Ziehau [Fri, 3 Jun 2011 06:58:54 +0000]
x86_64: Remove unnecessary #ifdef SMP from files compiled with options SMP

23 months agox86_64: Split mp_enable() into multiple SYSINITs
Sepherosa Ziehau [Fri, 3 Jun 2011 06:42:16 +0000]
x86_64: Split mp_enable() into multiple SYSINITs

Each SYSINIT is put into the proper file.  Garbage collect mp_start()
and mp_enable().

23 months agokernel -- snp: Correct bug in snpfilter_detach().
Venkatesh Srinivas [Fri, 3 Jun 2011 08:24:11 +0000]
kernel -- snp: Correct bug in snpfilter_detach().

Signed-off-by: Nathaniel Filardo <nwfilardo@gmail.com>
Submitted-by: Nick Prokharau <nickprok@gmail.com>

23 months agomandoc(1): Bump version.
Sascha Wildner [Thu, 2 Jun 2011 18:36:13 +0000]
mandoc(1): Bump version.

23 months agoMerge branch 'vendor/MDOCML'
Sascha Wildner [Thu, 2 Jun 2011 18:33:01 +0000]
Merge branch 'vendor/MDOCML'

23 months agoImport mdocml-1.11.3
Sascha Wildner [Thu, 2 Jun 2011 18:31:59 +0000]
Import mdocml-1.11.3

23 months agoFix the VKERNEL build.
Sascha Wildner [Thu, 2 Jun 2011 15:52:46 +0000]
Fix the VKERNEL build.

Reported-by: Thomas Nikolajsen

23 months agoAdd manpages for mkcsmapper(1) and mkesdb(1) (taken from FreeBSD).
Sascha Wildner [Thu, 2 Jun 2011 08:37:58 +0000]
Add manpages for mkcsmapper(1) and mkesdb(1) (taken from FreeBSD).

23 months agokernel/x86_64: Rename some macros to allow easier i386/x86_64 code sharing.
Sascha Wildner [Thu, 2 Jun 2011 06:20:01 +0000]
kernel/x86_64: Rename some macros to allow easier i386/x86_64 code sharing.

23 months agokernel: Remove an extra p_lock == 0 check
YONETANI Tomokazu [Thu, 2 Jun 2011 05:17:46 +0000]
kernel: Remove an extra p_lock == 0 check

proc_remove_zombie() waits for p_lock to drop to zero before removing
the process off zombproc, so this assertion is not needed (any more).

23 months agoRevert "kernel: Don't disturb about-to-be reaped zombies."
YONETANI Tomokazu [Thu, 2 Jun 2011 05:17:39 +0000]
Revert "kernel: Don't disturb about-to-be reaped zombies."

p_nthreads == 0 just means that the process's threads have all exited,
but not necessarily means it's about to be reaped.  We still want it
to show up in the ps or top in case it gets stuck during the exit.

Pointed-out-by: dillon@

This reverts commit 9458c398c0b97d30032a6541f8ab452cd93f5a86.

23 months agorl(4): Fix an old typo
Sepherosa Ziehau [Thu, 2 Jun 2011 01:26:00 +0000]
rl(4): Fix an old typo

If receiving buffer wrapping happens, the first size of copy should be the
size of the buffer at the end of the receiving buffer.

DragonFly-Bug: http://bugs.dragonflybsd.org/issue2083

23 months agoacpi: Fix use-before-initialization bug
Sepherosa Ziehau [Thu, 2 Jun 2011 01:21:25 +0000]
acpi: Fix use-before-initialization bug

Reported-by: swildner@

23 months agokernel: Use cpu_vendor_id instead of strcmp(cpu_vendor, "...").
Sascha Wildner [Wed, 1 Jun 2011 21:50:54 +0000]
kernel: Use cpu_vendor_id instead of strcmp(cpu_vendor, "...").

23 months agox86_64: Split cpu_startup() into pic_finish() and cpu_finish()
Sepherosa Ziehau [Wed, 1 Jun 2011 09:17:15 +0000]
x86_64: Split cpu_startup() into pic_finish() and cpu_finish()

23 months agox86_64: Prepare mp_enable() for multi-stage procedure segmentation
Sepherosa Ziehau [Wed, 1 Jun 2011 08:06:54 +0000]
x86_64: Prepare mp_enable() for multi-stage procedure segmentation

23 months agokern: Prepare to split SI_BOOT2_SMP into multi-stages
Sepherosa Ziehau [Wed, 1 Jun 2011 07:19:28 +0000]
kern: Prepare to split SI_BOOT2_SMP into multi-stages

23 months agox86_64: Move base_memory from mp_machdep.c to machdep.c
Sepherosa Ziehau [Wed, 1 Jun 2011 06:32:04 +0000]
x86_64: Move base_memory from mp_machdep.c to machdep.c

23 months ago<libutil.h>: Allow it to be included standalone (fixes security/heimdal).
Sascha Wildner [Wed, 1 Jun 2011 08:40:34 +0000]
<libutil.h>: Allow it to be included standalone (fixes security/heimdal).

23 months agox86_64: Move int_to_apicintpin from mp_machdep.c to apic/ioapic_abi.c
Sepherosa Ziehau [Tue, 31 May 2011 07:08:30 +0000]
x86_64: Move int_to_apicintpin from mp_machdep.c to apic/ioapic_abi.c

23 months agoacpi/pstate: Don't allow intermittent disappearance of _PSD
Sepherosa Ziehau [Tue, 31 May 2011 04:54:43 +0000]
acpi/pstate: Don't allow intermittent disappearance of _PSD

23 months agoacpi/pstate: Support Integer _PSD
Sepherosa Ziehau [Tue, 31 May 2011 04:37:21 +0000]
acpi/pstate: Support Integer _PSD

Standard _PSD should be package, while some buggy BIOSes will use Integer
for _PSD, e.g. Gigbyte's GA-H67MA-UD2H-B3.

Following template is used for Integer _PSD, after I have fiddled
around with the hw.acpi.cpu sysctl tree a little bit:
- Coordination is set to software all
- The integer of _PSD is taken as the power domain number
- The number of CPUs in the power domain is updated when new CPU in that
  power domain is seen

23 months agoi386: Move int_to_apicintpin from mp_machdep.c to apic/ioapic_abi.c
Sepherosa Ziehau [Mon, 30 May 2011 15:02:31 +0000]
i386: Move int_to_apicintpin from mp_machdep.c to apic/ioapic_abi.c

23 months agointr: Call machintr_intren() only for hardware interrupts
Sepherosa Ziehau [Mon, 30 May 2011 15:01:17 +0000]
intr: Call machintr_intren() only for hardware interrupts