dragonfly.git
14 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.

14 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>.

14 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.

14 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@
14 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

14 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

14 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

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

14 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.

14 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

14 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

14 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

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

14 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.

14 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

14 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

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

14 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

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

14 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

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

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

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

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

14 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

14 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

14 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

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

14 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

14 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>
14 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.

14 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

14 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.

14 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.

14 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.

14 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

14 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).

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

14 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

14 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.

14 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.

14 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.

14 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.

14 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

14 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.

14 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.

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

14 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@
14 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.

14 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
14 years agoMerge branch 'master' into amd64
Jordan Gordeev [Mon, 6 Jul 2009 15:17:09 +0000 (18:17 +0300)]
Merge branch 'master' into amd64

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

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

14 years agoMerge commit '1276d1e1a1b128f7093a3021d3f6bc27afa80d23' into amd64
Jordan Gordeev [Mon, 6 Jul 2009 14:47:52 +0000 (17:47 +0300)]
Merge commit '1276d1e1a1b128f7093a3021d3f6bc27afa80d23' into amd64

14 years agoamd64: Change the way I/O APIC's are mapped.
Jordan Gordeev [Sat, 4 Jul 2009 19:38:53 +0000 (22:38 +0300)]
amd64: Change the way I/O APIC's are mapped.

14 years agoamd64: Fix UP kernel build.
Jordan Gordeev [Mon, 6 Jul 2009 12:42:50 +0000 (15:42 +0300)]
amd64: Fix UP kernel build.

14 years agoamd64: Use proper size for atomic ops.
Jordan Gordeev [Mon, 6 Jul 2009 10:46:07 +0000 (13:46 +0300)]
amd64: Use proper size for atomic ops.

14 years agoamd64: Properly size an array for SMP.
Jordan Gordeev [Mon, 6 Jul 2009 10:33:17 +0000 (13:33 +0300)]
amd64: Properly size an array for SMP.

14 years agoamd64: Correct an omission.
Jordan Gordeev [Mon, 6 Jul 2009 12:15:35 +0000 (15:15 +0300)]
amd64: Correct an omission.

14 years agoamd64: Fix invocations of setidt().
Jordan Gordeev [Mon, 6 Jul 2009 10:25:53 +0000 (13:25 +0300)]
amd64: Fix invocations of setidt().
setidt() has different interface on i386 and amd64.

14 years agoamd64: Fixes for init_secondary().
Jordan Gordeev [Mon, 6 Jul 2009 10:24:23 +0000 (13:24 +0300)]
amd64: Fixes for init_secondary().

14 years agoamd64: Use the proper form of 'iret' to return from interrupt handlers.
Jordan Gordeev [Mon, 6 Jul 2009 09:58:49 +0000 (12:58 +0300)]
amd64: Use the proper form of 'iret' to return from interrupt handlers.

14 years agoamd64: Fix improper saving of a register.
Jordan Gordeev [Mon, 6 Jul 2009 09:43:00 +0000 (12:43 +0300)]
amd64: Fix improper saving of a register.
%esi is not guaranteed to be preserved across function calls.

14 years agoamd64: Update cpu_mfence(), cpu_lfence(), cpu_sfence() for SMP.
Jordan Gordeev [Sun, 5 Jul 2009 16:08:23 +0000 (19:08 +0300)]
amd64: Update cpu_mfence(), cpu_lfence(), cpu_sfence() for SMP.

14 years agoamd64: Help mptable_pass2() find and read the mptable.
Jordan Gordeev [Mon, 6 Jul 2009 12:12:53 +0000 (15:12 +0300)]
amd64: Help mptable_pass2() find and read the mptable.

14 years agoamd64: Call mptable_pass2().
Jordan Gordeev [Mon, 6 Jul 2009 11:14:29 +0000 (14:14 +0300)]
amd64: Call mptable_pass2().

14 years agoamd64: Map the local APIC.
Jordan Gordeev [Fri, 3 Jul 2009 19:23:20 +0000 (22:23 +0300)]
amd64: Map the local APIC.
Introduce a new function - pmap_mapdev_uncacheable(). It's a copy of pmap_mapdev(), but creates PT entries that disable caching.
Use pmap_mapdev_uncacheable() when mapping the local APIC.

14 years agoamd64: Sync mp_bootaddress() with FreeBSD.
Jordan Gordeev [Mon, 6 Jul 2009 11:12:33 +0000 (14:12 +0300)]
amd64: Sync mp_bootaddress() with FreeBSD.
Changed to match invocation in 'machdep.c'.

14 years agoamd64: Don't forget to call mp_probe().
Jordan Gordeev [Fri, 3 Jul 2009 18:38:48 +0000 (21:38 +0300)]
amd64: Don't forget to call mp_probe().

14 years agoamd64: Allow search_for_sig() to return 64-bit quantities.
Jordan Gordeev [Fri, 3 Jul 2009 18:16:26 +0000 (21:16 +0300)]
amd64: Allow search_for_sig() to return 64-bit quantities.

14 years agoamd64: Fix improper types in description of mptable structures.
Jordan Gordeev [Mon, 6 Jul 2009 11:06:35 +0000 (14:06 +0300)]
amd64: Fix improper types in description of mptable structures.

14 years agoMerge branch 'vendor/TCPDUMP' and update build for the update.
Peter Avalos [Mon, 6 Jul 2009 09:40:53 +0000 (23:40 -1000)]
Merge branch 'vendor/TCPDUMP' and update build for the update.

While I'm here, get rid of the *patch files for tcpdump, and just patch
the actual source in contrib/tcpdump/.

14 years agoUpgrade to tcpdump-4.0.0.
Peter Avalos [Mon, 6 Jul 2009 07:44:17 +0000 (21:44 -1000)]
Upgrade to tcpdump-4.0.0.

14 years agoAdd missing definition for RLIMIT_AS resource.
Stathis Kamperis [Tue, 26 May 2009 11:11:54 +0000 (14:11 +0300)]
Add missing definition for RLIMIT_AS resource.

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

14 years agoAdd README.DELETED to the tcpdump vendor branch.
Peter Avalos [Mon, 6 Jul 2009 07:06:29 +0000 (21:06 -1000)]
Add README.DELETED to the tcpdump vendor branch.

14 years agoMerge branch 'vendor/LIBPCAP' and updated build for new version.
Peter Avalos [Mon, 6 Jul 2009 06:11:42 +0000 (20:11 -1000)]
Merge branch 'vendor/LIBPCAP' and updated build for new version.

14 years agoUpdate to libpcap-1.0.0.
Peter Avalos [Mon, 6 Jul 2009 00:17:07 +0000 (14:17 -1000)]
Update to libpcap-1.0.0.

14 years agoAdd 'hammer info' command that shows extended information about mounted HAMMER fs.
Antonio Huete [Sun, 5 Jul 2009 00:36:48 +0000 (02:36 +0200)]
Add 'hammer info' command that shows extended information about mounted HAMMER fs.

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

14 years agorc.d/mountd: Bring in some fixes from FreeBSD
Sascha Wildner [Sun, 5 Jul 2009 12:41:29 +0000 (14:41 +0200)]
rc.d/mountd: Bring in some fixes from FreeBSD

* Add shutdown keyword.

* Use PID file.

* Use checkyesno for nfs_server_enable.

* Instead of mountd_flags use rc_flags to override mountd_flags' value.

14 years agosysctl.h should include kernel.h
Aggelos Economopoulos [Sun, 5 Jul 2009 10:57:34 +0000 (13:57 +0300)]
sysctl.h should include kernel.h

Noticed-by: Robert Luciani <rluciani@gmail.com>
14 years agoMerge branch 'vendor/TCPDUMP'
Peter Avalos [Sat, 4 Jul 2009 21:45:21 +0000 (11:45 -1000)]
Merge branch 'vendor/TCPDUMP'

14 years agoMerge branch 'vendor/TCPDUMP' (early part)
Peter Avalos [Sat, 4 Jul 2009 21:44:53 +0000 (11:44 -1000)]
Merge branch 'vendor/TCPDUMP' (early part)

14 years agoMove tcpdump-3.9/ to tcpdump/. No need for a versioned dir.
Peter Avalos [Sat, 4 Jul 2009 21:36:18 +0000 (11:36 -1000)]
Move tcpdump-3.9/ to tcpdump/.  No need for a versioned dir.

14 years agoRemove old versions of tcpdump.
Peter Avalos [Sat, 4 Jul 2009 21:35:49 +0000 (11:35 -1000)]
Remove old versions of tcpdump.

14 years agoAdd README.DELETED to libpcap's vendor branch.
Peter Avalos [Sat, 4 Jul 2009 21:32:36 +0000 (11:32 -1000)]
Add README.DELETED to libpcap's vendor branch.

14 years agoMerge branch 'vendor/LIBPCAP'
Peter Avalos [Sat, 4 Jul 2009 21:26:17 +0000 (11:26 -1000)]
Merge branch 'vendor/LIBPCAP'

14 years agoMerge branch 'vendor/LIBPCAP' (early part)
Peter Avalos [Sat, 4 Jul 2009 21:05:10 +0000 (11:05 -1000)]
Merge branch 'vendor/LIBPCAP' (early part)

14 years agoRemove extra whitespace and fix types in some manual pages.
Sascha Wildner [Sat, 4 Jul 2009 20:27:30 +0000 (22:27 +0200)]
Remove extra whitespace and fix types in some manual pages.

14 years agoMove libpcap-0.9/ to libpcap. No need to version the directory.
Peter Avalos [Sat, 4 Jul 2009 20:18:39 +0000 (10:18 -1000)]
Move libpcap-0.9/ to libpcap.  No need to version the directory.

14 years agoRemove old versions of libpcap.
Peter Avalos [Sat, 4 Jul 2009 20:17:05 +0000 (10:17 -1000)]
Remove old versions of libpcap.

14 years agoUSB - Fix mis-cast in EHCI producing garbage on console
Matthew Dillon [Fri, 3 Jul 2009 21:38:50 +0000 (14:38 -0700)]
USB - Fix mis-cast in EHCI producing garbage on console

EHCI was improperly interpreting the companion bus softc pointer,
causing it to report junk on the console.

Reported-by: Alexander Polakov <polachok@gmail.com>
14 years agofrevoke - More fixes to fdfree()
Matthew Dillon [Fri, 3 Jul 2009 17:48:26 +0000 (10:48 -0700)]
frevoke - More fixes to fdfree()

* Don't replace p->p_fd until after all closef()'s have been called.  Fixed
  panic in kqueue's close function.

* Move softrefs check to after the closef point, but before we actually
  start kfree()ing the structures.  Lock the closef's normally since
  p->p_fd is still valid.

14 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Fri, 3 Jul 2009 16:44:28 +0000 (09:44 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

14 years agoHAMMER - Formalize the maximum number of volumes (256).
Matthew Dillon [Fri, 3 Jul 2009 16:43:11 +0000 (09:43 -0700)]
HAMMER - Formalize the maximum number of volumes (256).

Formalize the maximum number of volumes (256) by adding a define in
hammer_disk.h and then using it.

Submitted-by: Antonio Huete Jimenez <ahuete.devel@gmail.com>
14 years agoAdd a wrapper script to allow "foreign" compilers into our build system.
Sascha Wildner [Fri, 3 Jul 2009 12:03:54 +0000 (14:03 +0200)]
Add a wrapper script to allow "foreign" compilers into our build system.

With this commit, all CCVER values not associated with a compiler in
base will be relegated to the wrapper script which then (in conjunction
with the compilers.conf file) determines which non-base compiler to
use.

So far, defaults for clang (built from SVN) and pkgsrc/wip/gcc44 are
provided.

For more info see the compilers.conf(5) manual page and my mail on
kernel@:

http://leaf.dragonflybsd.org/mailarchive/kernel/2009-06/msg00013.html

14 years agohammer.sh: Sync with some of the recent installer changes.
Sascha Wildner [Fri, 3 Jul 2009 00:22:44 +0000 (02:22 +0200)]
hammer.sh: Sync with some of the recent installer changes.

* Use disklabel64(8).

* Do the 'chflags nohistory ...' after the cpdups to not have cpdup
  overwrite the flags again.

14 years agoinstaller: Use disklabel64 for the UFS only install, too.
Sascha Wildner [Thu, 2 Jul 2009 23:45:16 +0000 (01:45 +0200)]
installer: Use disklabel64 for the UFS only install, too.

Discussed-with: dillon, corecode

14 years agoinstaller: Move the 'chflags nohistory ...' commands behind the cpdups.
Sascha Wildner [Thu, 2 Jul 2009 21:52:49 +0000 (23:52 +0200)]
installer: Move the 'chflags nohistory ...' commands behind the cpdups.

This works around the issue that cpdup resets the flags if changed
before.

Reported-by: corecode
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1259>

14 years agofile descriptor enumeration - Fix races
Matthew Dillon [Thu, 2 Jul 2009 19:02:17 +0000 (12:02 -0700)]
file descriptor enumeration - Fix races

Add a soft refrence count, fd_softrefs, to struct filedesc.  This is
used to prevent the filedesc from being ripped out from under a file
descriptor scan via the allproc scan, which is used to enumerate
file descriptors and also used by the revoke code.

Reported-by: hasso