dragonfly.git
15 years agoFix a warning by conditionalizing a forward declaration.
Matthew Dillon [Thu, 2 Jun 2005 21:55:22 +0000 (21:55 +0000)]
Fix a warning by conditionalizing a forward declaration.

15 years agoRemove variable names from procedure declarations so userland doesn't
Matthew Dillon [Thu, 2 Jun 2005 21:51:31 +0000 (21:51 +0000)]
Remove variable names from procedure declarations so userland doesn't
trip up on the header file.

15 years agoConditionalize thread2.h so /usr/src/usr.bin/fstat can include vm_object.h.
Matthew Dillon [Thu, 2 Jun 2005 21:51:00 +0000 (21:51 +0000)]
Conditionalize thread2.h so /usr/src/usr.bin/fstat can include vm_object.h.

15 years agoRemove spl*() calls from the crypto device driver, replacing them with
Matthew Dillon [Thu, 2 Jun 2005 21:40:55 +0000 (21:40 +0000)]
Remove spl*() calls from the crypto device driver, replacing them with
critical sections.

15 years agoRemove spl*() calls from the atm code, replacing them with critical sections.
Matthew Dillon [Thu, 2 Jun 2005 21:36:09 +0000 (21:36 +0000)]
Remove spl*() calls from the atm code, replacing them with critical sections.

15 years agoConditionalize an #include so libcam can build the file.
Matthew Dillon [Thu, 2 Jun 2005 21:12:45 +0000 (21:12 +0000)]
Conditionalize an #include so libcam can build the file.

15 years agoRemove spl*() calls and replace them with critical sections.
Sascha Wildner [Thu, 2 Jun 2005 20:57:21 +0000 (20:57 +0000)]
Remove spl*() calls and replace them with critical sections.

15 years agoRemove spl*() calls from the bus/ infrastructure, replacing them with
Matthew Dillon [Thu, 2 Jun 2005 20:41:05 +0000 (20:41 +0000)]
Remove spl*() calls from the bus/ infrastructure, replacing them with
critical sections.  Remove splusb() from everywhere, replacing it with
critical sections.

15 years ago<sys/vmmeter.h> need not be included twice.
Sascha Wildner [Thu, 2 Jun 2005 19:57:07 +0000 (19:57 +0000)]
<sys/vmmeter.h> need not be included twice.

15 years agoANSIfy.
Jeroen Ruigrok/asmodai [Thu, 2 Jun 2005 18:45:06 +0000 (18:45 +0000)]
ANSIfy.

15 years agoDetail thread-safety conformance.
Jeroen Ruigrok/asmodai [Thu, 2 Jun 2005 18:44:07 +0000 (18:44 +0000)]
Detail thread-safety conformance.

15 years agoClean up type-o's.
Matthew Dillon [Thu, 2 Jun 2005 16:20:51 +0000 (16:20 +0000)]
Clean up type-o's.

15 years agoUse volatile sig_atomic_t variables and async-signal-safe functions for
Sascha Wildner [Thu, 2 Jun 2005 16:16:37 +0000 (16:16 +0000)]
Use volatile sig_atomic_t variables and async-signal-safe functions for
signal handling.

Submitted by: Sepherosa Ziehau <sepherosa@softhome.net>

15 years agoOnly do the OS version requirements check if DESTDIR is non-existant,
Matthew Dillon [Thu, 2 Jun 2005 06:08:07 +0000 (06:08 +0000)]
Only do the OS version requirements check if DESTDIR is non-existant,
empty, or "/".  Otherwise we cannot build nrelease on boxes with older
kernels.

Reported-by: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>
15 years agoFix a bugaboo in the last commit. The wildcard patterns were not accounting
Matthew Dillon [Wed, 1 Jun 2005 22:59:14 +0000 (22:59 +0000)]
Fix a bugaboo in the last commit.  The wildcard patterns were not accounting
for kernel versions older then 1.3.1.

15 years agoFix a recursive clock_lock() on SMP systems which was deadlocking on boot.
Matthew Dillon [Wed, 1 Jun 2005 22:55:19 +0000 (22:55 +0000)]
Fix a recursive clock_lock() on SMP systems which was deadlocking on boot.
(related to the new system timer API).

15 years agoAdd a simple API tha allows the interrupt timer to efficiently convert
Matthew Dillon [Wed, 1 Jun 2005 22:25:14 +0000 (22:25 +0000)]
Add a simple API tha allows the interrupt timer to efficiently convert
system hardware ticks (e.g. ACPI at 3x the frequency) to interrupt timer
ticks (e.g. 8254 timer 0).

Remove the sysctl code that allows the system hardware timer to be selected
after boot.

15 years agoBack out last commit, this wasn't supposed to crep in.
Joerg Sonnenberger [Wed, 1 Jun 2005 20:47:14 +0000 (20:47 +0000)]
Back out last commit, this wasn't supposed to crep in.

15 years agoUse the ACPI timer as the system clock if possible. This should free up
Matthew Dillon [Wed, 1 Jun 2005 20:40:33 +0000 (20:40 +0000)]
Use the ACPI timer as the system clock if possible.  This should free up
the PC speaker on most systems and fix VESA BIOS and other issues.

15 years agoDisable the ability to change the system clock with a sysctl. More
Matthew Dillon [Wed, 1 Jun 2005 20:38:37 +0000 (20:38 +0000)]
Disable the ability to change the system clock with a sysctl.  More
work is needed before this will work (if we ever want to make it work,
that is).  The system clock selected at boot time is the one that will
be used.

15 years agoif_printf / device_printf. remove stored device_t reference as it is
Joerg Sonnenberger [Wed, 1 Jun 2005 20:21:47 +0000 (20:21 +0000)]
if_printf / device_printf. remove stored device_t reference as it is
no longer needed.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
15 years agoMore cleanups, add the API implementation to select the system clock.
Matthew Dillon [Wed, 1 Jun 2005 20:19:47 +0000 (20:19 +0000)]
More cleanups, add the API implementation to select the system clock.

15 years agoRemoving rest of debugging code which slipped into the commit.
Joerg Sonnenberger [Wed, 1 Jun 2005 20:04:53 +0000 (20:04 +0000)]
Removing rest of debugging code which slipped into the commit.
This doesn't change the semantic.

Noticed-by: Andreas Kohn
15 years ago* Add __unused where necessary.
Sascha Wildner [Wed, 1 Jun 2005 18:37:20 +0000 (18:37 +0000)]
* Add __unused where necessary.

* Change local variable name to avoid name shadowing.

* Bump WARNS to 6.

Submitted by: Sepherosa Ziehau <sepherosa@softhome.net>

15 years ago- Kill keyword 'register'
Liam J. Foy [Wed, 1 Jun 2005 18:25:45 +0000 (18:25 +0000)]
- Kill keyword 'register'

15 years agoStop branding DragonFly binaries with the FreeBSD ABI.
Joerg Sonnenberger [Wed, 1 Jun 2005 18:07:10 +0000 (18:07 +0000)]
Stop branding DragonFly binaries with the FreeBSD ABI.
Increment __DragonFly_version to get this into programs,
we can do sanity checks on it later.

15 years agoImplement a new cputimer infrastructure to allow us to support different
Matthew Dillon [Wed, 1 Jun 2005 17:43:46 +0000 (17:43 +0000)]
Implement a new cputimer infrastructure to allow us to support different
time bases.  This is in preparation for adding support for the ACPI timer
as the system's free-running counter instead of the i8254 timer 1 or timer 2.

15 years agoAdd back support for SYSV binaries. Those are nasty since
Joerg Sonnenberger [Wed, 1 Jun 2005 16:51:46 +0000 (16:51 +0000)]
Add back support for SYSV binaries.  Those are nasty since
ELFOSABI_NONE == ELFOSABI_SYSV, but doing another loop to
handle them doesn't hurt much, since it's not the critical path
anyway.

15 years agoTeach file about DragonFly's ELF ABI tagging.
Joerg Sonnenberger [Wed, 1 Jun 2005 15:09:11 +0000 (15:09 +0000)]
Teach file about DragonFly's ELF ABI tagging.

Go ahead for local patch by maintainer.

15 years agoIncrement subversion to allow matching for ELF ABI tagging enabled kernels.
Joerg Sonnenberger [Wed, 1 Jun 2005 14:36:48 +0000 (14:36 +0000)]
Increment subversion to allow matching for ELF ABI tagging enabled kernels.

15 years agoMerge from vendor branch FILE:
Joerg Sonnenberger [Wed, 1 Jun 2005 14:34:46 +0000 (14:34 +0000)]
Merge from vendor branch FILE:
Update to file 4.13. Put the contrib files into contrib/file-4 instead
of contrib/file-4.13 since we want to do more incremental updates and
this keeps the repository size down.

15 years agoUpdate to file 4.13. Put the contrib files into contrib/file-4 instead
Joerg Sonnenberger [Wed, 1 Jun 2005 14:34:46 +0000 (14:34 +0000)]
Update to file 4.13. Put the contrib files into contrib/file-4 instead
of contrib/file-4.13 since we want to do more incremental updates and
this keeps the repository size down.

15 years agoUpdate to file 4.13. Put the contrib files into contrib/file-4 instead
Joerg Sonnenberger [Wed, 1 Jun 2005 14:34:46 +0000 (14:34 +0000)]
Update to file 4.13. Put the contrib files into contrib/file-4 instead
of contrib/file-4.13 since we want to do more incremental updates and
this keeps the repository size down.

15 years ago* Remove timevaladd() and move timevalfix() and timevalsub() to
Sascha Wildner [Wed, 1 Jun 2005 03:05:40 +0000 (03:05 +0000)]
* Remove timevaladd() and move timevalfix() and timevalsub() to
  usr.bin/kdump where they belong.

* Include missing <stdlib.h>, add prototypes, staticize, constify,
  remove void casts, add __unused.

* Minor style(9) cleanup.

* Bump WARNS to 6.

Submitted by:     Haakon Schad Bergsaker <hakonsb@math.uio.no>
Modifications by: me

15 years agoAdd DragonFly cvs id.
Sascha Wildner [Wed, 1 Jun 2005 03:02:30 +0000 (03:02 +0000)]
Add DragonFly cvs id.

15 years agoRemove no longer relevant file.
Sascha Wildner [Tue, 31 May 2005 22:49:19 +0000 (22:49 +0000)]
Remove no longer relevant file.

15 years ago- Minor restructure. Don't bother calling makemsg() unless we can create
Liam J. Foy [Tue, 31 May 2005 19:11:04 +0000 (19:11 +0000)]
- Minor restructure. Don't bother calling makemsg() unless we can create
the client.

Ok: joerg

15 years agoDon't match executables with ELFOSABI_NONE against the brand list.
Joerg Sonnenberger [Tue, 31 May 2005 17:45:20 +0000 (17:45 +0000)]
Don't match executables with ELFOSABI_NONE against the brand list.
For binaries without matching brand, try to match PT_NOTE header
of type 1 (which is equal to .note.ABI-tag as section).

Implement matching for FreeBSD, the up-coming DragonFly and Linux
ABI tag.

This implementation has some known limitations:
- only one PT_NOTE header of type 1 is checked (the last)
- the PT_NOTE header has to be part of the first page
- ELF branding is prefered, no further matching is done (prevents multiple
  ABI emulations for the same ELF OS ABI)

Inspired-by: NetBSD
15 years agoRemove M_EXT_OLD, rename m_ext.ext_nref.new to m_ext.ext_ref and
Joerg Sonnenberger [Tue, 31 May 2005 14:11:43 +0000 (14:11 +0000)]
Remove M_EXT_OLD, rename m_ext.ext_nref.new to m_ext.ext_ref and
m_ext.ext_nfree.new to m_ext.ext_free.

15 years ago- Fix memory leak if realloc(3) failed. Use reallocf(3).
Liam J. Foy [Tue, 31 May 2005 13:50:09 +0000 (13:50 +0000)]
- Fix memory leak if realloc(3) failed. Use reallocf(3).

Ok: joerg

15 years agoIf we want to abuse an API by providing a callback doing nothing, we
Joerg Sonnenberger [Tue, 31 May 2005 12:31:21 +0000 (12:31 +0000)]
If we want to abuse an API by providing a callback doing nothing, we
can at least follow the new API to do nothing.

15 years agoConvert to new m_ext API.
Joerg Sonnenberger [Tue, 31 May 2005 12:29:05 +0000 (12:29 +0000)]
Convert to new m_ext API.

15 years agocleanup
Joerg Sonnenberger [Tue, 31 May 2005 10:44:13 +0000 (10:44 +0000)]
cleanup

15 years agoNo need to bzero softc.
Joerg Sonnenberger [Tue, 31 May 2005 08:30:14 +0000 (08:30 +0000)]
No need to bzero softc.

15 years agoLet fxp_release take a device_t directly and change some device_printf
Joerg Sonnenberger [Tue, 31 May 2005 08:27:47 +0000 (08:27 +0000)]
Let fxp_release take a device_t directly and change some device_printf
to if_printf. This allows the elimination of fxp_softc.dev.
Also add a missing '\n' in fxp_attach.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
15 years agoRemove __inline hints, let the compiler figure out the details.
Joerg Sonnenberger [Tue, 31 May 2005 08:23:29 +0000 (08:23 +0000)]
Remove __inline hints, let the compiler figure out the details.
This prevents GCC 3.4.4 from inline fxp_scb_wait, but since we access
external memory anyway, the calling overhead doesn't matter.

15 years agoUse PCI accessor functions instead of messing directly with the
Joerg Sonnenberger [Tue, 31 May 2005 08:19:04 +0000 (08:19 +0000)]
Use PCI accessor functions instead of messing directly with the
config space.
Use if_printf in fxp_watchdog.
Don't hardware interface name for if_initname, use the device name.
Remove bogus source path and include of machine/clock.h.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
15 years agoRemove bogus check if interface was already attached. The function is
Joerg Sonnenberger [Tue, 31 May 2005 08:12:48 +0000 (08:12 +0000)]
Remove bogus check if interface was already attached. The function is
called only from *_attach and if those are called twice, enough is broken
already.

15 years agoif_printf / device_printf.
Joerg Sonnenberger [Tue, 31 May 2005 08:10:44 +0000 (08:10 +0000)]
if_printf / device_printf.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
15 years agoif_printf / device_printf cleanup.
Joerg Sonnenberger [Tue, 31 May 2005 08:06:47 +0000 (08:06 +0000)]
if_printf / device_printf cleanup.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
While here, use a local eaddr to build the fake MAC address and stop
printing it in fwe_attach, ether_ifattach does it already.

15 years agoUse PCI accessor functions instead of messing directly with the config
Joerg Sonnenberger [Tue, 31 May 2005 07:52:22 +0000 (07:52 +0000)]
Use PCI accessor functions instead of messing directly with the config
space.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
15 years agoUse ether_crc32_be / ether_crc32_le.
Joerg Sonnenberger [Tue, 31 May 2005 07:51:13 +0000 (07:51 +0000)]
Use ether_crc32_be / ether_crc32_le.

Obtained-from: FreeBSD

Factor out crc mask calculation and move it out of the loop.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
15 years agoif_printf / device_printf.
Joerg Sonnenberger [Tue, 31 May 2005 07:46:17 +0000 (07:46 +0000)]
if_printf / device_printf.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
15 years agoWARNS6 cleanup.
Sascha Wildner [Tue, 31 May 2005 00:22:38 +0000 (00:22 +0000)]
WARNS6 cleanup.

Submitted by: Peter Avalos <pavalos@theshell.com>

15 years ago* Remove register keywords.
Sascha Wildner [Tue, 31 May 2005 00:06:26 +0000 (00:06 +0000)]
* Remove register keywords.

* WARNS6 cleanup (approx. 1100 warnings).

* Move drandom() to phantglobs.c instead of having 2 versions.

* K&R -> ANSI function declarations.

Submitted by: Peter Avalos <pavalos@theshell.com>

15 years agoAdd the DragonFly cvs id.
Sascha Wildner [Tue, 31 May 2005 00:00:38 +0000 (00:00 +0000)]
Add the DragonFly cvs id.

15 years agolibc_r has to provide strong versions of the public symbols to override
Joerg Sonnenberger [Mon, 30 May 2005 20:50:53 +0000 (20:50 +0000)]
libc_r has to provide strong versions of the public symbols to override
the stubs in libc. Otherwise mixing e.g. of pthread_cond_init from libc
and pthread_cond_timedwait from libc_r can occur and result in panics.

15 years agoForgot to assign ext_buf, resulting in a panic.
Joerg Sonnenberger [Mon, 30 May 2005 11:56:00 +0000 (11:56 +0000)]
Forgot to assign ext_buf, resulting in a panic.

Reported-by: Pawel Biernacki <kaktus@chaos.dragonflybsd.pl>
15 years agoHandle renaming of battd.1 to battd.8
Sascha Wildner [Mon, 30 May 2005 00:54:46 +0000 (00:54 +0000)]
Handle renaming of battd.1 to battd.8

15 years agoAlways clean the cat directory as well.
Sascha Wildner [Mon, 30 May 2005 00:42:39 +0000 (00:42 +0000)]
Always clean the cat directory as well.

15 years agoFix date.
Sascha Wildner [Mon, 30 May 2005 00:19:40 +0000 (00:19 +0000)]
Fix date.

15 years agoAdd sorta colorful Fred logo for the boot menu. Rename beastie_disable
Sascha Wildner [Sun, 29 May 2005 23:35:00 +0000 (23:35 +0000)]
Add sorta colorful Fred logo for the boot menu. Rename beastie_disable
to fred_disable (along with some more words). Document fred_disable
and loader_color.

Submitted by: Joerg Anslik <joerg@anslik.de>

Based on a patch by: Aaron Malone <aaron@munge.net>
[see http://leaf.dragonflybsd.org/mailarchive/submit/2004-01/msg00032.html]

15 years agoSimplify the interface to m_uiomove().
Jeffrey Hsu [Sun, 29 May 2005 16:32:20 +0000 (16:32 +0000)]
Simplify the interface to m_uiomove().

15 years agoRename local variable for clarity.
Jeffrey Hsu [Sun, 29 May 2005 15:52:26 +0000 (15:52 +0000)]
Rename local variable for clarity.

15 years agoUse m_getl() to get the right sized mbuf.
Jeffrey Hsu [Sun, 29 May 2005 10:39:59 +0000 (10:39 +0000)]
Use m_getl() to get the right sized mbuf.

15 years agoDeprecate MCLGET() in favor of m_getcl() or m_getl() in order to
Jeffrey Hsu [Sun, 29 May 2005 10:08:36 +0000 (10:08 +0000)]
Deprecate MCLGET() in favor of m_getcl() or m_getl() in order to
take advantage of cluster caching.

15 years agoUse ether_crc32_be.
Joerg Sonnenberger [Sat, 28 May 2005 22:22:33 +0000 (22:22 +0000)]
Use ether_crc32_be.

Obtained-from: FreeBSD

15 years agostyle and minor cleanup
Joerg Sonnenberger [Sat, 28 May 2005 22:15:07 +0000 (22:15 +0000)]
style and minor cleanup

15 years agoUse ether_crc32_le and ether_crc32_be.
Joerg Sonnenberger [Sat, 28 May 2005 21:02:04 +0000 (21:02 +0000)]
Use ether_crc32_le and ether_crc32_be.

Obtained-from: FreeBSD

15 years agoUse M_ZERO instead of an explicit bzero().
Sascha Wildner [Sat, 28 May 2005 01:16:30 +0000 (01:16 +0000)]
Use M_ZERO instead of an explicit bzero().

15 years agoRemove DEC Alpha support.
Sascha Wildner [Sat, 28 May 2005 00:22:04 +0000 (00:22 +0000)]
Remove DEC Alpha support.

15 years agoRemove DEC Alpha support.
Sascha Wildner [Fri, 27 May 2005 21:12:51 +0000 (21:12 +0000)]
Remove DEC Alpha support.

15 years agoRemove old workaround for 2.6.3 optimizer bug.
Sascha Wildner [Fri, 27 May 2005 20:57:40 +0000 (20:57 +0000)]
Remove old workaround for 2.6.3 optimizer bug.

15 years agoConvert to new m_ext interface. This also fixes a memory leak, since
Joerg Sonnenberger [Fri, 27 May 2005 20:43:50 +0000 (20:43 +0000)]
Convert to new m_ext interface. This also fixes a memory leak, since
sk_detach wasn't correctly cleaning up the jumbo buffer ring.

15 years agoRemove nge_jpool_etrny, not used anymore.
Joerg Sonnenberger [Fri, 27 May 2005 20:27:56 +0000 (20:27 +0000)]
Remove nge_jpool_etrny, not used anymore.

15 years agoMinor reorder of the code to make it easier to deal with capabilities.
Joerg Sonnenberger [Fri, 27 May 2005 19:11:49 +0000 (19:11 +0000)]
Minor reorder of the code to make it easier to deal with capabilities.

15 years agoUse ether_ioctl for the default case and merge the cases which just
Joerg Sonnenberger [Fri, 27 May 2005 15:36:10 +0000 (15:36 +0000)]
Use ether_ioctl for the default case and merge the cases which just
call it.

15 years agoDon't cast command to int.
Joerg Sonnenberger [Fri, 27 May 2005 15:19:40 +0000 (15:19 +0000)]
Don't cast command to int.

15 years agoDon't call ether_ioctl first, check for errors and call it again
Joerg Sonnenberger [Fri, 27 May 2005 15:13:10 +0000 (15:13 +0000)]
Don't call ether_ioctl first, check for errors and call it again
or process the special cases afterwards. Just call it for those
cases we are not interested in.

15 years agoUse ether_ioctl for the default case. Merge cases which just called it.
Joerg Sonnenberger [Fri, 27 May 2005 15:08:11 +0000 (15:08 +0000)]
Use ether_ioctl for the default case. Merge cases which just called it.

15 years agoFall through to ether_ioctl and merge those cases which just called it.
Joerg Sonnenberger [Fri, 27 May 2005 15:03:12 +0000 (15:03 +0000)]
Fall through to ether_ioctl and merge those cases which just called it.

15 years agoUse ether_ioctl for the default case in dc_ioctl. Merge SIOCSIFADDR,
Joerg Sonnenberger [Fri, 27 May 2005 14:57:19 +0000 (14:57 +0000)]
Use ether_ioctl for the default case in dc_ioctl. Merge SIOCSIFADDR,
SIOCGIFADDR and SIOCSIFMTU into the default case.

15 years ago- Use pidfile(3). The pid file can be used as a quick reference if the process
Liam J. Foy [Fri, 27 May 2005 11:24:49 +0000 (11:24 +0000)]
- Use pidfile(3). The pid file can be used as a quick reference if the process
  needs to be sent a signal.

Obtained from: NetBSD

15 years agoFix CVS root directory name.
Sascha Wildner [Fri, 27 May 2005 10:01:24 +0000 (10:01 +0000)]
Fix CVS root directory name.

Noticed by: Thomas E. Spanjaard <tgen@netphreax.net>

15 years agoFix supfile name.
Sascha Wildner [Fri, 27 May 2005 09:29:32 +0000 (09:29 +0000)]
Fix supfile name.

Noticed by: Thomas E. Spanjaard <tgen@netphreax.net>

15 years agoUse M_ZERO instead of an explicit bzero().
Sascha Wildner [Fri, 27 May 2005 07:52:21 +0000 (07:52 +0000)]
Use M_ZERO instead of an explicit bzero().

15 years agoFix misspelled filename.
Sascha Wildner [Fri, 27 May 2005 07:35:59 +0000 (07:35 +0000)]
Fix misspelled filename.

15 years agoRemove DEC Alpha support.
Sascha Wildner [Thu, 26 May 2005 23:22:13 +0000 (23:22 +0000)]
Remove DEC Alpha support.

15 years agoRemove an extra comma and fix two typos.
Sascha Wildner [Thu, 26 May 2005 23:17:31 +0000 (23:17 +0000)]
Remove an extra comma and fix two typos.

15 years agoFix typo with last commit.
Jeffrey Hsu [Thu, 26 May 2005 22:59:57 +0000 (22:59 +0000)]
Fix typo with last commit.

Noticed by: Sascha Wildner

15 years agostyle. remove some unused variables.
Joerg Sonnenberger [Thu, 26 May 2005 22:49:17 +0000 (22:49 +0000)]
style. remove some unused variables.

15 years agoAdd missing splx(s) in sk_detach.
Joerg Sonnenberger [Thu, 26 May 2005 22:17:12 +0000 (22:17 +0000)]
Add missing splx(s) in sk_detach.

15 years ago* Declare vtb_buffer as a pointer to uint16_t and get rid of
Sascha Wildner [Thu, 26 May 2005 16:24:33 +0000 (16:24 +0000)]
* Declare vtb_buffer as a pointer to uint16_t and get rid of
  sc_vtb_pointer() and some casts.

* Use the standard uint16_t type instead of u_int16_t.

* Use M_ZERO instead of explicitly bzero()ing.

* Don't set VTB_VALID if malloc() failed.

In discussion with: joerg

15 years agoProperly initialize the serializer by calling lwkt_serialize_init().
Matthew Dillon [Thu, 26 May 2005 09:10:36 +0000 (09:10 +0000)]
Properly initialize the serializer by calling lwkt_serialize_init().

15 years agoFix a bug in the serializer's race detection code. It is possible for
Matthew Dillon [Thu, 26 May 2005 09:10:10 +0000 (09:10 +0000)]
Fix a bug in the serializer's race detection code.  It is possible for
the lock to be acquired and released by an interrupt between our attempt
to acquire and our tsleep.  We must test the condition again from within
a critical section before sleeping.

The previous code was doing a test-and-set when it should have just done
a test in the re-test case.

15 years agoRemove some debugging that crept int othe last commit.
Matthew Dillon [Thu, 26 May 2005 09:06:40 +0000 (09:06 +0000)]
Remove some debugging that crept int othe last commit.

15 years agoFix a race in the serializer's use of atomic_intr_cond_enter(). When
Matthew Dillon [Wed, 25 May 2005 22:59:20 +0000 (22:59 +0000)]
Fix a race in the serializer's use of atomic_intr_cond_enter().  When
the procedure call is made the serializer must enter a critical section
and check the bit again before actually sleeping to avoid a race against
wakeup().

15 years agoPrefer m_getcl() to separate calls to MGETHDR() and MCLGET() in order to
Jeffrey Hsu [Wed, 25 May 2005 21:35:51 +0000 (21:35 +0000)]
Prefer m_getcl() to separate calls to MGETHDR() and MCLGET() in order to
take advantage of cluster caching.

15 years agoProperly conditionalize a call to ether_poll_deregister via
Matthew Dillon [Wed, 25 May 2005 21:26:52 +0000 (21:26 +0000)]
Properly conditionalize a call to ether_poll_deregister via
#ifdef DEVICE_POLLING.

Reported-by: various
15 years agoRemove redundant assignment.
Jeffrey Hsu [Wed, 25 May 2005 21:18:51 +0000 (21:18 +0000)]
Remove redundant assignment.