dragonfly.git
5 years agoIO APIC: Get rid of apic_imen
Sepherosa Ziehau [Thu, 9 Jul 2009 02:15:34 +0000 (10:15 +0800)]
IO APIC: Get rid of apic_imen

Add IOAPIC_IM_FLAG_MASKED to apic_intmapinfo, which indicates the
IRQ is currently masked.  Use it instead of apic_imen.

5 years agoIO APIC: Get rid of apic_pin_trigger
Sepherosa Ziehau [Wed, 8 Jul 2009 09:08:53 +0000 (17:08 +0800)]
IO APIC: Get rid of apic_pin_trigger

- Expend apic_intmapinfo from 16bytes to 32bytes
- Add flags field in apic_intmapinfo, which now records irq's trigger mode

5 years agoUse genassym to replace magic numbers in pc32/apic_{vector,ipl}.s
Sepherosa Ziehau [Wed, 8 Jul 2009 08:30:00 +0000 (16:30 +0800)]
Use genassym to replace magic numbers in pc32/apic_{vector,ipl}.s

5 years agoAPIC vector: Compact redirect entry's mask bit setting and clearing
Sepherosa Ziehau [Wed, 8 Jul 2009 06:53:37 +0000 (14:53 +0800)]
APIC vector: Compact redirect entry's mask bit setting and clearing

5 years agoUse IOAPIC_WINDOW in pc32/apic_ipl.s
Sepherosa Ziehau [Wed, 8 Jul 2009 06:32:41 +0000 (14:32 +0800)]
Use IOAPIC_WINDOW in pc32/apic_ipl.s

5 years agoRemove unused code in pc32/ipl.s
Sepherosa Ziehau [Wed, 8 Jul 2009 03:40:01 +0000 (11:40 +0800)]
Remove unused code in pc32/ipl.s

5 years agoRemove unsued code in kern/kern_intr.c
Sepherosa Ziehau [Wed, 8 Jul 2009 03:35:07 +0000 (11:35 +0800)]
Remove unsued code in kern/kern_intr.c

5 years agofast intr: Don't dispatch to the BGL owner, if BGL could not be holden;
Sepherosa Ziehau [Wed, 8 Jul 2009 03:29:44 +0000 (11:29 +0800)]
fast intr: Don't dispatch to the BGL owner, if BGL could not be holden;
just reschedule ithread.

Discussed-with: dillon@

5 years agoMove to the interrupt's destination CPU before tearing down the interrupt
Sepherosa Ziehau [Wed, 8 Jul 2009 03:08:01 +0000 (11:08 +0800)]
Move to the interrupt's destination CPU before tearing down the interrupt

5 years agoTurn on PG_N (nocache) when mapping ioapic
Sepherosa Ziehau [Wed, 8 Jul 2009 02:32:41 +0000 (10:32 +0800)]
Turn on PG_N (nocache) when mapping ioapic

Noticed-by: Jordan Gordeev <jgordeev@dir.bg>
5 years agoprocfs - fix incremental reads of /proc/*/rlimit
Matthew Dillon [Fri, 10 Jul 2009 22:24:08 +0000 (15:24 -0700)]
procfs - fix incremental reads of /proc/*/rlimit

The rlimit code was only properly copying data for all-in-one-go reads,
and mishandling incremental reads.

Submitted-by: Beket@@irc
5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Fri, 10 Jul 2009 21:09:50 +0000 (14:09 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agoAdd /sbin/getdevpath utility - userland convenience utility for getdevpath(3).
Matthew Dillon [Fri, 10 Jul 2009 21:09:13 +0000 (14:09 -0700)]
Add /sbin/getdevpath utility - userland convenience utility for getdevpath(3).

5 years agolibutil - add getdevpath()
Matthew Dillon [Fri, 10 Jul 2009 20:56:56 +0000 (13:56 -0700)]
libutil - add getdevpath()

Add the getdevpath() function which translates a device name such as "da0",
or label such as "fubar", into a device path.  This function searches
/usr/local/etc/devtab, /etc/devtab, and /etc/defaults/devtab for labels.
Device names beginning with '/' or '.' are assumed to be paths and passed
through.

5 years agopthread_once.3: Fix typo.
Sascha Wildner [Fri, 10 Jul 2009 02:33:50 +0000 (04:33 +0200)]
pthread_once.3: Fix typo.

5 years agopthread_barrierattr.3: Remove empty section.
Sascha Wildner [Fri, 10 Jul 2009 02:25:21 +0000 (04:25 +0200)]
pthread_barrierattr.3: Remove empty section.

5 years agosigwait.3: Add missing '.'
Sascha Wildner [Fri, 10 Jul 2009 02:17:38 +0000 (04:17 +0200)]
sigwait.3: Add missing '.'

5 years agopthread*.3: Sync the pthread manpages with FreeBSD.
Sascha Wildner [Fri, 10 Jul 2009 02:16:40 +0000 (04:16 +0200)]
pthread*.3: Sync the pthread manpages with FreeBSD.

Brings in some missing pages and some small fixes.

Reminded-by: hasso
5 years agopci.9: Sync with FreeBSD.
Sascha Wildner [Thu, 9 Jul 2009 21:29:21 +0000 (23:29 +0200)]
pci.9: Sync with FreeBSD.

5 years agoamd64: Sync header 'int_limits.h' with i386.
Jordan Gordeev [Thu, 9 Jul 2009 11:07:59 +0000 (14:07 +0300)]
amd64: Sync header 'int_limits.h' with i386.
Helps building of GNU m4 (and other GNU stuff).

5 years agoRemove obsolete kernel options: PCI_ENABLE_IO_MODES & PCI_QUIET.
Sascha Wildner [Thu, 9 Jul 2009 07:58:05 +0000 (09:58 +0200)]
Remove obsolete kernel options: PCI_ENABLE_IO_MODES & PCI_QUIET.

5 years agoRemove hardcoded -g in several Makefiles.
Sascha Wildner [Wed, 8 Jul 2009 20:43:21 +0000 (22:43 +0200)]
Remove hardcoded -g in several Makefiles.

5 years agoCAM - disable cache synchronization by default for USB attachments.
Matthew Dillon [Thu, 9 Jul 2009 03:01:17 +0000 (20:01 -0700)]
CAM - disable cache synchronization by default for USB attachments.

Instead of trying to blacklist particular usb mass storage devices which
do not support the cache synchronization command, just default to not
supporting it for ALL usb mass storage attachments.  Too many usb devices
brick when sent the command.

It matters more now that people are using HAMMER, and HAMMER utilizes the
cache synchronization command to delineate flushes.  We will now by
definition not be able to guarantee recovery if HAMMER is used on a USB
mass storage device.  It will probably work anyway, though.

Reported-by: Many people
5 years agoAMD64 - Fix identcpu.
Matthew Dillon [Wed, 8 Jul 2009 21:03:28 +0000 (14:03 -0700)]
AMD64 - Fix identcpu.

5 years agoAMD64 - Include NULLFS in JG64
Matthew Dillon [Wed, 8 Jul 2009 20:41:48 +0000 (13:41 -0700)]
AMD64 - Include NULLFS in JG64

5 years agolibc - use a valid pointer for malloc(0).
Matthew Dillon [Wed, 8 Jul 2009 20:36:26 +0000 (13:36 -0700)]
libc - use a valid pointer for malloc(0).

This fixes an issue with qsort()ing 0 elements.

Reported-by: smtms
5 years agoAMD64 - Use ld -r to generate .ko for modules.
Matthew Dillon [Wed, 8 Jul 2009 19:43:39 +0000 (12:43 -0700)]
AMD64 - Use ld -r to generate .ko for modules.

5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Wed, 8 Jul 2009 19:34:10 +0000 (12:34 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agoAMD64 - Enable module building, sync i386 headers etc as needed.
Matthew Dillon [Wed, 8 Jul 2009 19:33:02 +0000 (12:33 -0700)]
AMD64 - Enable module building, sync i386 headers etc as needed.

* Enable module building (platform/pc64/Makefile.inc)

* Copy files and make changes as needed to bring amd64 up to date.

5 years agohammer.8: Comment out rebalance which is not part of cleanup yet.
Sascha Wildner [Wed, 8 Jul 2009 18:07:48 +0000 (20:07 +0200)]
hammer.8: Comment out rebalance which is not part of cleanup yet.

5 years agoAMD64 - Fix native-built sys/boot install
Matthew Dillon [Wed, 8 Jul 2009 17:52:32 +0000 (10:52 -0700)]
AMD64 - Fix native-built sys/boot install

* Pass the proper elf format to the linker when compiling programs in
  sys/boot.

* include btxld in the 64 bit buildworld.  It is needed by sys/boot.

* a.out.h / imgact_aout.h needed a special case to generate a 32 bit
  struct exec when compiled from a 64 bit environment.

5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Wed, 8 Jul 2009 16:11:37 +0000 (09:11 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agoAHCI - Do not try to attach as AHCI unless INTEL part identifies as AHCI
Matthew Dillon [Wed, 8 Jul 2009 16:10:07 +0000 (09:10 -0700)]
AHCI - Do not try to attach as AHCI unless INTEL part identifies as AHCI

Do not try to attach as AHCI if the BIOS has configured an INTEL part
as legacy ATA instead of AHCI.  This is a temporary hack until the
code can be cleaned up more generally.

Reported-by: corecode
5 years agopciconf(8): Fix some warnings.
Sascha Wildner [Wed, 8 Jul 2009 12:06:45 +0000 (14:06 +0200)]
pciconf(8): Fix some warnings.

5 years agoBump __DragonFly_version after introducing PCI domain
Sepherosa Ziehau [Wed, 8 Jul 2009 10:56:54 +0000 (18:56 +0800)]
Bump __DragonFly_version after introducing PCI domain

Requested-by: hasso@
5 years agoACPI P-State: Allow # of member CPUs in the CPU domain less than required
Sepherosa Ziehau [Tue, 7 Jul 2009 11:41:01 +0000 (19:41 +0800)]
ACPI P-State: Allow # of member CPUs in the CPU domain less than required

This could be done as long as the CPU domain's coordination is _not_ SWALL.
Now ACPI CPU P-State driver could attach even if a UP kernel booted on an
MP box.

5 years agoIntel P-State CPU driver: Support ioport control/status registers
Sepherosa Ziehau [Tue, 7 Jul 2009 11:08:44 +0000 (19:08 +0800)]
Intel P-State CPU driver: Support ioport control/status registers

5 years agoACPI P-State: Implement CPU driver for Intel CPUs
Sepherosa Ziehau [Tue, 7 Jul 2009 07:53:32 +0000 (15:53 +0800)]
ACPI P-State: Implement CPU driver for Intel CPUs

Currently altering and extracting P-State information through
IA32_PERF_{STATUS,CTL} MSR are supported.

5 years agoACPI P-State: Add init method for CPU driver.
Sepherosa Ziehau [Tue, 7 Jul 2009 05:48:37 +0000 (13:48 +0800)]
ACPI P-State: Add init method for CPU driver.

This method could be used by certain Intel ACPI P-State CPU drivers
to set "Enhanced SpeedStep" enable bit in IA32_MISC_ENABLE MSR.

Add a NOP implementation for AMD P-State CPU drivers.

5 years agoACPI P-State: Try allocating resource for CSR
Sepherosa Ziehau [Tue, 7 Jul 2009 03:49:45 +0000 (11:49 +0800)]
ACPI P-State: Try allocating resource for CSR

5 years agoacpi_bus_alloc_gas: Constify gas parameter
Sepherosa Ziehau [Tue, 7 Jul 2009 03:11:51 +0000 (11:11 +0800)]
acpi_bus_alloc_gas: Constify gas parameter

5 years agoACPI C-State: Move rid allocation into ACPI CPU and save rid for each C-State
Sepherosa Ziehau [Tue, 7 Jul 2009 03:01:06 +0000 (11:01 +0800)]
ACPI C-State: Move rid allocation into ACPI CPU and save rid for each C-State

5 years agoACPI P-State: Wrap ACPI_GENERIC_ADDRESS in struct acpi_pst_res
Sepherosa Ziehau [Tue, 7 Jul 2009 02:18:27 +0000 (10:18 +0800)]
ACPI P-State: Wrap ACPI_GENERIC_ADDRESS in struct acpi_pst_res

Some Intel CPUs' will need iomem/ioport to configure P-State, so
this change gives us enough space to implement this mechanism.

5 years agoACPI package: Factor out acpi_PkgRawGas()
Sepherosa Ziehau [Tue, 7 Jul 2009 01:41:04 +0000 (09:41 +0800)]
ACPI package: Factor out acpi_PkgRawGas()

It saves the ACPI_GENERIC_ADDRESS in the specified memory location.

5 years agoACPI P-State: Get rid of 'H' suffix
Sepherosa Ziehau [Tue, 7 Jul 2009 01:20:19 +0000 (09:20 +0800)]
ACPI P-State: Get rid of 'H' suffix

5 years agopci/amd64: Duplicate pci/i386 to pci/amd64.
Sepherosa Ziehau [Mon, 6 Jul 2009 12:32:48 +0000 (20:32 +0800)]
pci/amd64: Duplicate pci/i386 to pci/amd64.

PIR and BIOS related parts are commented out as in the original code.

5 years agopci: Partly restore original unknown device information logging.
Sepherosa Ziehau [Mon, 6 Jul 2009 12:06:38 +0000 (20:06 +0800)]
pci: Partly restore original unknown device information logging.

Suggested-by: swildner@
5 years agopci.4: Sync with FreeBSD RELENG_7_2.
Sascha Wildner [Sun, 5 Jul 2009 18:01:47 +0000 (20:01 +0200)]
pci.4: Sync with FreeBSD RELENG_7_2.

5 years agosys/bus/pci: Remove left over inclusion <sys/cdefs.h>.
Sascha Wildner [Sun, 5 Jul 2009 17:49:32 +0000 (19:49 +0200)]
sys/bus/pci: Remove left over inclusion <sys/cdefs.h>.

5 years agopciconf(8): Sync with FreeBSD's RELENG_7_2.
Sascha Wildner [Sun, 5 Jul 2009 17:16:05 +0000 (19:16 +0200)]
pciconf(8): Sync with FreeBSD's RELENG_7_2.

5 years agoagp/drm: Adapt according to the recent pci code change
Sepherosa Ziehau [Mon, 6 Jul 2009 10:55:08 +0000 (18:55 +0800)]
agp/drm: Adapt according to the recent pci code change

Submitted-by: hasso@
5 years agopci: Resurrect COMPAT_OLDPCI; mainly to unbreak LINT building
Sepherosa Ziehau [Sun, 5 Jul 2009 13:08:30 +0000 (21:08 +0800)]
pci: Resurrect COMPAT_OLDPCI; mainly to unbreak LINT building

5 years agopci: pcib_owner no longer exists
Sepherosa Ziehau [Sun, 5 Jul 2009 11:29:05 +0000 (19:29 +0800)]
pci: pcib_owner no longer exists

5 years agopci: Move legacyvar.h to bus/pci/i386
Sepherosa Ziehau [Sun, 5 Jul 2009 11:24:28 +0000 (19:24 +0800)]
pci: Move legacyvar.h to bus/pci/i386

5 years agopci: White space cleanup
Sepherosa Ziehau [Sun, 5 Jul 2009 11:03:32 +0000 (19:03 +0800)]
pci: White space cleanup

5 years agopci: Don't clear BAR if resource reservation failed.
Sepherosa Ziehau [Sun, 5 Jul 2009 08:12:39 +0000 (16:12 +0800)]
pci: Don't clear BAR if resource reservation failed.

Some BIOS lists HPET as PCI function, clearing its iomem BAR causes
the HPET timer stop ticking.  Add comment about it.

5 years agocardbus(4): Merge resource allocation changes (for new PCI code) from FreeBSD
Sepherosa Ziehau [Sun, 5 Jul 2009 04:20:52 +0000 (12:20 +0800)]
cardbus(4): Merge resource allocation changes (for new PCI code) from FreeBSD

5 years agocbb(4): Rework secondary bus number setup; aware of PCI domain
Sepherosa Ziehau [Sun, 5 Jul 2009 04:19:47 +0000 (12:19 +0800)]
cbb(4): Rework secondary bus number setup; aware of PCI domain

Obtained-from: FreeBSD

5 years agopci: Fix up bunch of warnings
Sepherosa Ziehau [Sat, 4 Jul 2009 12:28:23 +0000 (20:28 +0800)]
pci: Fix up bunch of warnings

5 years agopci: Remove debug left overs
Sepherosa Ziehau [Sat, 4 Jul 2009 12:06:46 +0000 (20:06 +0800)]
pci: Remove debug left overs

5 years agopci: Don't allow PCIBIOS PCI-PCI bridge to attach if APIC_IO is defined
Sepherosa Ziehau [Sat, 4 Jul 2009 11:31:21 +0000 (19:31 +0800)]
pci: Don't allow PCIBIOS PCI-PCI bridge to attach if APIC_IO is defined

PCIBIOS PCI-PCI bridge will try routing PCI interrupt using PIR, which
is probably not what we want, even if MP table does not contain the PCI
interrupt routing information.

5 years agopci: Log a message if PIR checksum failed
Sepherosa Ziehau [Sat, 4 Jul 2009 11:05:35 +0000 (19:05 +0800)]
pci: Log a message if PIR checksum failed

5 years agopciconf(8): Update PCIC/PCIS macro names accordingly
Sepherosa Ziehau [Sat, 4 Jul 2009 10:13:42 +0000 (18:13 +0800)]
pciconf(8): Update PCIC/PCIS macro names accordingly

5 years agopci: Remove PC98 code
Sepherosa Ziehau [Sat, 4 Jul 2009 09:09:58 +0000 (17:09 +0800)]
pci: Remove PC98 code

5 years agopci: Put back PCI Express related bits
Sepherosa Ziehau [Sat, 4 Jul 2009 09:02:22 +0000 (17:02 +0800)]
pci: Put back PCI Express related bits

5 years agopci: Reorganize PCI capabilities' extraction
Sepherosa Ziehau [Sat, 4 Jul 2009 08:25:02 +0000 (16:25 +0800)]
pci: Reorganize PCI capabilities' extraction

5 years agopci: Put back header gardian in header files
Sepherosa Ziehau [Sat, 4 Jul 2009 07:19:09 +0000 (15:19 +0800)]
pci: Put back header gardian in header files

5 years agopci: Bring back 3f607eb6e6bf8981c33dc29fd477005f364fa9ce
Sepherosa Ziehau [Sat, 4 Jul 2009 07:07:51 +0000 (15:07 +0800)]
pci: Bring back 3f607eb6e6bf8981c33dc29fd477005f364fa9ce

5 years agopci: Bring back 72876ce0680bbb61ce6bedfb36f18004c36e99fc
Sepherosa Ziehau [Sat, 4 Jul 2009 07:06:20 +0000 (15:06 +0800)]
pci: Bring back 72876ce0680bbb61ce6bedfb36f18004c36e99fc

5 years agopci: Bring back 978400d3b04daf8f91ba8bb2dcc382a37ef632f4
Sepherosa Ziehau [Sat, 4 Jul 2009 06:53:17 +0000 (14:53 +0800)]
pci: Bring back 978400d3b04daf8f91ba8bb2dcc382a37ef632f4

5 years agopci: Bring back b0486c83a8f6492dcc8941711cccc6cc3d2dea03
Sepherosa Ziehau [Sat, 4 Jul 2009 05:50:56 +0000 (13:50 +0800)]
pci: Bring back b0486c83a8f6492dcc8941711cccc6cc3d2dea03

5 years agopci: Bring back part of dbcd0c9b8a52c489e134c81386c900b1338da9e4
Sepherosa Ziehau [Sat, 4 Jul 2009 05:46:43 +0000 (13:46 +0800)]
pci: Bring back part of dbcd0c9b8a52c489e134c81386c900b1338da9e4

5 years agopci: device_identify method returns int
Sepherosa Ziehau [Sat, 4 Jul 2009 05:44:36 +0000 (13:44 +0800)]
pci: device_identify method returns int

5 years agopci: Put back APIC_IO PCI interrupt routine workaround
Sepherosa Ziehau [Sat, 4 Jul 2009 05:02:49 +0000 (13:02 +0800)]
pci: Put back APIC_IO PCI interrupt routine workaround

5 years agoRevoke kreallocf()
Sepherosa Ziehau [Sat, 4 Jul 2009 04:33:34 +0000 (12:33 +0800)]
Revoke kreallocf()

5 years agopci: Don't test whether acpi module is loaded; acpi-pci is not ready to go yet
Sepherosa Ziehau [Sat, 4 Jul 2009 04:19:45 +0000 (12:19 +0800)]
pci: Don't test whether acpi module is loaded; acpi-pci is not ready to go yet

5 years agoSync PCI code with FreeBSD 7.2
Sepherosa Ziehau [Sat, 4 Jul 2009 03:32:50 +0000 (11:32 +0800)]
Sync PCI code with FreeBSD 7.2

Submitted-by: Alexander Polakov <polachok@gmail.com>
5 years agoAMD64 - Fix trapframe, intrframe, and user mode cpu accounting.
Matthew Dillon [Wed, 8 Jul 2009 06:22:45 +0000 (23:22 -0700)]
AMD64 - Fix trapframe, intrframe, and user mode cpu accounting.

* Fix broken CLKF_USERMODE macro.  This was causing the cpu accounting
  code to mis-detect usermode interrupt frames.

* Fix trapframe, it was missing a field and not matching up against intrframe.
  This caused a bad intrframe to be passed to doreti.

* Fix calls to lwkt_process_ipiq_frame from doreti.  The intrframe was off
  by 8 bytes.

5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Wed, 8 Jul 2009 03:15:15 +0000 (20:15 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agoAMD64 - Fix bug in pmap_release_free_page()
Matthew Dillon [Wed, 8 Jul 2009 03:13:31 +0000 (20:13 -0700)]
AMD64 - Fix bug in pmap_release_free_page()

The pmap_release_free_page() function was improperly conditionalizing
a test for (pindex == NUPDE + NUPDPE + PML4PML4I) which caused it to
fall through to an else clause, instead of doing nothing.  Make it
do nothing.

This fixes a hold count panic.

5 years agoAMD64 - Enable floating point context switching
Matthew Dillon [Wed, 8 Jul 2009 03:12:52 +0000 (20:12 -0700)]
AMD64 - Enable floating point context switching

The FP code was only partially enabled.  Enable all the code.  This fixes
FP context switching between user processes.

5 years agoAMD64 - stop the backtrace if the stack address is too low.
Matthew Dillon [Wed, 8 Jul 2009 03:11:28 +0000 (20:11 -0700)]
AMD64 - stop the backtrace if the stack address is too low.

Stop the backtrace if the stack address is too low.  This fixes at least
one panic when the debugger is asked to print kernel stack backtraces.

5 years agoJG64 - include ahci, sili, and usb devices
Matthew Dillon [Wed, 8 Jul 2009 03:10:46 +0000 (20:10 -0700)]
JG64 - include ahci, sili, and usb devices

5 years agohammerread.c: Fix WARNS regression (unused variable).
Sascha Wildner [Tue, 7 Jul 2009 22:09:27 +0000 (00:09 +0200)]
hammerread.c: Fix WARNS regression (unused variable).

5 years agoMerge commit 'smtms/amd64'
Matthew Dillon [Tue, 7 Jul 2009 18:19:59 +0000 (11:19 -0700)]
Merge commit 'smtms/amd64'

5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Tue, 7 Jul 2009 18:02:40 +0000 (11:02 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agoVKERNEL - vkernel test build, build SMP
Matthew Dillon [Tue, 7 Jul 2009 17:55:35 +0000 (10:55 -0700)]
VKERNEL - vkernel test build, build SMP

* Vkernel is built SMP by default, set default number of cpus to 2.

* Provide environment or make variable overrides for NCPUS and PHYSMEM.

* Change network default to /dev/vknet (for use w/ DHCP) instead of
  hardwiring 10.3.1.1.

5 years agombwtest - Attempt to detect the L3 cache.
Matthew Dillon [Tue, 7 Jul 2009 17:54:45 +0000 (10:54 -0700)]
mbwtest - Attempt to detect the L3 cache.

Attempt to detect the L3 cache.  This doesn't work very well yet.

5 years agoBOOT2 - adjust hammerread code to understand the new directory localization cap.
Matthew Dillon [Tue, 7 Jul 2009 17:53:41 +0000 (10:53 -0700)]
BOOT2 - adjust hammerread code to understand the new directory localization cap.

5 years agoAHCI - Set AE before doing hard reset (HR).
Matthew Dillon [Tue, 7 Jul 2009 17:51:20 +0000 (10:51 -0700)]
AHCI - Set AE before doing hard reset (HR).

NOTE on AE before HR. This is against the spec which neither
indicates nor implies any such requirement, but both the linux
and freebsd drivers do it so we will too.

5 years agoMerge branch 'master' of /home/www-data/gitweb/dragonfly
Peter Avalos [Mon, 6 Jul 2009 21:23:17 +0000 (11:23 -1000)]
Merge branch 'master' of /home/www-data/gitweb/dragonfly

5 years agoRemove tcpslice(1).
Peter Avalos [Mon, 6 Jul 2009 21:18:02 +0000 (11:18 -1000)]
Remove tcpslice(1).

The code is fairly ancient, and if people want it they can get it from
pkgsrc.

5 years ago"Sync" threading libaries.
Hasso Tepper [Mon, 6 Jul 2009 21:11:04 +0000 (00:11 +0300)]
"Sync" threading libaries.

* Introduce stubs returning error into libc_r for functions which don't
  exist there, but are there in libthread_xu.
* Compile POSIX spinlocks implementation in libthread_xu.
* Define _POSIX_BARRIERS and _POSIX_SPIN_LOCKS and modify sysconf(3)
  accordingly.

5 years agoffs.3: Fix SYNOPSIS.
Sascha Wildner [Mon, 6 Jul 2009 20:21:46 +0000 (22:21 +0200)]
ffs.3: Fix SYNOPSIS.

5 years agogetrlimit.2: Markup fixes.
Stathis Kamperis [Mon, 6 Jul 2009 19:26:36 +0000 (22:26 +0300)]
getrlimit.2: Markup fixes.

Reviewed-by: swildner@
5 years agoinstaller: Remove part that wasn't meant to be committed.
Sascha Wildner [Mon, 6 Jul 2009 17:12:45 +0000 (19:12 +0200)]
installer: Remove part that wasn't meant to be committed.

5 years agoinstaller: Fix configuration of a HAMMER system with UFS /boot.
Sascha Wildner [Mon, 6 Jul 2009 17:02:04 +0000 (19:02 +0200)]
installer: Fix configuration of a HAMMER system with UFS /boot.

The only thing we can rely upon is that /boot is partition a. So for
determining which partition is /, take a peek at /boot/loader.conf
for now.

While here, simplify the mounting part a bit.

Reported-by: dillon, hasso
5 years agoMerge branch 'master' into amd64
Jordan Gordeev [Mon, 6 Jul 2009 15:17:09 +0000 (18:17 +0300)]
Merge branch 'master' into amd64

5 years agoMerge commit 'f447e7925783f3867b00d2b9cbd27f896a99205f' into amd64
Jordan Gordeev [Mon, 6 Jul 2009 14:55:02 +0000 (17:55 +0300)]
Merge commit 'f447e7925783f3867b00d2b9cbd27f896a99205f' into amd64

5 years agoMerge commit '973c11b9c3cdde88fe6ca0ef2c5af56a8c49e014' into amd64
Jordan Gordeev [Mon, 6 Jul 2009 14:54:20 +0000 (17:54 +0300)]
Merge commit '973c11b9c3cdde88fe6ca0ef2c5af56a8c49e014' into amd64