Commit Graph

91188 Commits

Author SHA1 Message Date
cube
d97f33f6eb Regen syscall tables for mach binary compatibility. Per request from dsl@. 2007-12-11 08:06:46 +00:00
dsl
a5766b890b Include mach_syscallargs.h to (hopefully) get MACH_SYS_MAXSYSARGS. 2007-12-11 08:06:16 +00:00
lukem
3290dbb81a use __KERNEL_RCSID() 2007-12-11 05:38:12 +00:00
nisimura
0edee75daa - have machine/cpu.h and sys/device.h references here. 2007-12-11 05:32:12 +00:00
lukem
efbfd27b57 use __KERNEL_RCSID() 2007-12-11 05:20:33 +00:00
nisimura
d1ce7e7621 - switch to use majors.powerpc. 2007-12-11 05:01:21 +00:00
lukem
6c9202e6d8 Use __KERNEL_RCSID() instead of vendor RCS or SCCS IDs. 2007-12-11 04:55:00 +00:00
jmcneill
9313b4bcb3 Disable apm@acpi on amd64, since we don't create /dev/apmctl, build apmd,
or provide machine/apmvar.h. Ok ad@
2007-12-11 04:22:46 +00:00
jmcneill
8eeb638b73 Register with pmf 2007-12-11 03:45:57 +00:00
jmcneill
f2fa8d82cf Make this compile again. 2007-12-11 02:02:31 +00:00
oster
7f102f3ada Use CFATTACH_DECL_NEW instead of CFATTACH_DECL... ICB wisdom
is that this will fix the config_devalloc panic.
2007-12-11 01:54:46 +00:00
jmcneill
eded1e0324 Disable the wd_suspend power handler on the proper branch, workaround for
kern/37508
2007-12-11 01:52:18 +00:00
jmcneill
4d6cb5af6b Use PRI_NONE for the event workqueue. 2007-12-11 01:20:06 +00:00
jmcneill
5bd9c210ef Use malloc/free instead of kmem_alloc/kmem_free in pmf_event_inject, since
the latter is not safe to use from a softint. Pointed out by rmind.
2007-12-11 01:00:45 +00:00
martin
f40133bd10 const'ify ad1848 devmap. 2007-12-11 00:21:51 +00:00
martin
2ce2127701 When collecting mixer values while suspending, initialize the number
of channels from the mixer device info. Fixes PR kern/37512.
OK: jmcneill
2007-12-11 00:08:14 +00:00
xtraeme
947675b6c4 Remove useless returns at the end of void functions. 2007-12-10 23:50:25 +00:00
xtraeme
0cd3ab0981 Register to the pmf(9) framework and fix an error path. 2007-12-10 23:25:59 +00:00
reinoud
3a44e8ad9d Add missing \n and remove surplus . 2007-12-10 22:56:29 +00:00
dsl
be33a1a204 Increase the maximum number of syscall args.
sys_mach_sys_msg_overwrite_trap() has been overwriting stack!
2007-12-10 22:32:15 +00:00
dsl
380984af81 Use MACH_SYS_MAXSYSARGS for the syscall args array, don't hardcode 8. 2007-12-10 22:28:45 +00:00
ad
d0e415a936 GENERIC is good enough. 2007-12-10 22:27:46 +00:00
ad
8218ef4d43 Real hardware has been available for a long time now! 2007-12-10 21:48:20 +00:00
ad
eb83663daa softint_establish: hack around CPU_INFO_FOREACH() not working before
configure() on some architectures.
2007-12-10 20:43:43 +00:00
elad
9725bcfd97 - Use KAUTH_ARG() instead of casts,
- Don't ignore return value of settime() in sysctl_kern_rtc_offset(), as
  suggested by yamt@.

Note: the kauth(9) call in sysctl_kern_rtc_offset() is bogus, but this will
be addressed separately.
2007-12-10 18:58:02 +00:00
garbled
05fd0d9547 Switch ofppc to the unified powerpc majors file. This should make single
user mode work.
2007-12-10 18:19:45 +00:00
wiz
30df2bb21e Add acpiecdt and add a comment explaining it (from i386/GENERIC). 2007-12-10 17:44:33 +00:00
garbled
5c179ff52d Add a new majors.powerpc. This was cobbled together from the majors
files of all the different powerpc ports (except amigappc).  It should be
compatible with sandpoint and macppc.  It is compatible with evbppc minus
one device (gtmpsc).

To convert a port to use this file rather than a local one, delete your
majors file, and edit your files.port to point to this instead.  (I will
follow up with a MAKEDEV fix to support this)
2007-12-10 17:43:52 +00:00
degroote
087fae3d54 Register fxp @ pci to the pmf framework
Kill reference to old powerhook framework.
2007-12-10 16:15:02 +00:00
bsh
d957da610d fix compile error (no previous prototype for 'sysctl_FOO') when
SYSCTL_SETUP() is used in LKM.
2007-12-10 14:19:08 +00:00
bouyer
9ef60ea019 Make Xen kernels build again. 2007-12-10 13:39:06 +00:00
jmcneill
e099142b51 Revert previous, thanks wiz! 2007-12-10 12:35:27 +00:00
pooka
b2552d3eae 4.99.42: pmf (just if to be able to say "pmf appeared in 4.99.42") 2007-12-10 11:07:05 +00:00
he
3dfb5682d1 Remove a now-unused local variable. 2007-12-10 08:57:36 +00:00
dogcow
646b6c65c5 sometimes we don't have MTRR. (thanks, taca!) 2007-12-10 03:12:46 +00:00
jmcneill
b36c96248a Wups, pmf_class_input_deregister is private; use pmf_device_deregister
instead
2007-12-10 01:13:38 +00:00
jmcneill
cda2869251 Deregister input class handler on detach. 2007-12-10 01:11:49 +00:00
jmcneill
94d68e1562 pmf_driver_register -> pmf_device_register 2007-12-09 23:58:40 +00:00
jmcneill
5430a31312 Register with power management framework. 2007-12-09 23:47:53 +00:00
jmcneill
332e9781e2 Userland has no business looking at this file, wrap in #ifdef _KERNEL
Pointed out by Paul Goyette on current-users
2007-12-09 23:21:39 +00:00
martin
8ddc5309ba Add support for "dumppcb" - Nick says it makes ddb a lot more happy. 2007-12-09 22:04:32 +00:00
smb
55755eddc3 Change pnp_get_platform to pmf_get_platform 2007-12-09 21:52:05 +00:00
smb
9428ee68f7 Add Sierra 5725 miniPCI wireless card (CDMA EVDO) 2007-12-09 21:26:47 +00:00
smb
8167a34333 Correct error in 5725 commit 2007-12-09 21:24:30 +00:00
smb
38fba18e22 Add Sierra 5725 mini-PCI card 2007-12-09 21:21:21 +00:00
xtraeme
273ccc1066 Remove useless returns at the end of void functions. 2007-12-09 21:14:26 +00:00
jmcneill
6829a93c1c Use aprint_debug to notify the user that a device does not implement the
power management framework rather than aprint_error.
2007-12-09 21:11:57 +00:00
xtraeme
747de0248d Register to pmf(9). 2007-12-09 20:59:37 +00:00
martin
14587719e2 Add missing <sys/device.h> include. 2007-12-09 20:57:19 +00:00
jmcneill
6dc665045d How did these get lost? 2007-12-09 20:32:17 +00:00
jmcneill
4c1d81b2b5 Merge jmcneill-pm branch. 2007-12-09 20:27:42 +00:00
martin
3947df41d1 Provide cpu_intr_p(), at least for non-MULTIPROCESSOR kernels.
Based on suggestions by Andrew Doran.
2007-12-09 20:12:54 +00:00
degroote
939a0dbd0a Kill _IP_VHL ifdef (from netinet/ip.h history, it has never been used in NetBSD so ...) 2007-12-09 18:27:39 +00:00
ad
be36918dcb Use sys/atomic instead of __asm(). 2007-12-09 15:35:15 +00:00
ad
f7576cd670 Use the new memory barriers. 2007-12-09 15:33:13 +00:00
ad
36fb43dbdb Use atomic_cas_ulong(). 2007-12-09 15:32:27 +00:00
ad
56c1b0074f Minor correction to previous. 2007-12-09 15:31:03 +00:00
ad
dd24075295 - pmap_reactivate: save an atomic op if possible.
- pmap_tlb_shootdown: use atomic ops instead of _lock_cas().
2007-12-09 15:29:53 +00:00
dogcow
9ad45b39e6 more NDINIT fallout. not completely compile-tested. 2007-12-09 13:34:23 +00:00
wiz
9c131e8d5c Remove last argument from NDINIT call, following
"Remove cn_lwp from struct componentname.  curlwp should be used
from on.  The NDINIT() macro no longer takes the lwp parameter and
associates the credentials of the calling thread with the namei
structure." from pooka.
2007-12-09 12:50:29 +00:00
nisimura
da81a6921f - make sure to advertise flowcontrol and 1000T FDX/HDX capablity for
GbE NICs.
- stop and reactive MII auto polling for every MII read/write access
in vge.c and nvt.c.
2007-12-09 09:55:58 +00:00
ober
02ade29d04 Cleaning up commented out code. Formatting according to style rules. 2007-12-09 03:33:29 +00:00
xtraeme
6797f052ff Erm fix some defines in previous... 2007-12-09 00:24:46 +00:00
jmcneill
0273402379 kern/37501: cosmetic error in acpi_tz probe messages 2007-12-08 23:01:30 +00:00
mrg
07f0bc85c9 catch up with the adses: IPL_CLOCK -> IPL_VM in a couple of places
that are #ifdef MULTIPROCESSOR.

MP sparc kernel faults inside proc0_init() yet.
2007-12-08 21:50:07 +00:00
pooka
319ddafdc5 Now that "l" is gone both as an argument to operations and from
componentname, remove all vestiges of puffs_cid.
2007-12-08 19:57:02 +00:00
pooka
0153ca9dc9 4.99.41: cn_lwp is dead, long live curlwp 2007-12-08 19:30:53 +00:00
pooka
e474023c09 regen 2007-12-08 19:30:19 +00:00
pooka
db06a930e6 Remove cn_lwp from struct componentname. curlwp should be used
from on.  The NDINIT() macro no longer takes the lwp parameter and
associates the credentials of the calling thread with the namei
structure.
2007-12-08 19:29:36 +00:00
dsl
28bae79b27 ANSIfy most of the function definitions in sys/compat (but not ndis).
All by the magic of sed ...
2007-12-08 18:35:53 +00:00
xtraeme
1e1bd31956 Add some more firmware command/status codes from the freebsd driver. 2007-12-08 16:53:19 +00:00
tsutsui
2dc9b9cb28 ufs_ls.c doesn't belong to lfs. 2007-12-08 16:00:25 +00:00
ad
6ab26a0fa8 Partially merge syncer changes from vmlocking2. 2007-12-08 15:47:32 +00:00
ad
371ba00b4a Allocate amaps from a pool_cache. 2007-12-08 15:46:31 +00:00
tsutsui
0ac5343d25 Pull several fixes from OpenBSD's fxp.c:
Rev 1.41:
> use a nop with I bit set at the end of the tx chain.  This avoids a race
> between status update and clearing the suspend bit on machines which can't
> write data smaller than 32bits at a time.
This should fix PR port-alpha/30560.

Rev 1.50:
> Fix nasty bug where driver would not correctly catch and handle an rnr
> condition when it was due to the the recieve buffers being exhausted with
> no packet transmits during that time. Symptom was that the fxp would
> simply stop interrupting for the next 15 seconds until the watchdog kicked
> in and reset the chip due to 15 seconds of inactivity, making the fxp very
> poorly behaved when hammered on hard.

Rev 1.61:
> Defer reinitialisation of the RU until after the interrupt handler has had
> a chance to process all pending packets, otherwise the chip may overwrite
> their mbuf clusters after we have freed them.
>
> Eliminates a race that can cause random pool corruption when reconfiguring
> an interface under heavy network load.

And one more change for RX sanity:
- put RU into suspend when the last RFA is processed.

These RNR/RU changes may fix pool corruption problems on fxp.

Tested on AlphaPC164 and i386 with i82559 and i82550.
2007-12-08 15:45:43 +00:00
ad
de874f619c Merge from vmlocking2 (use cdev_mmap()). 2007-12-08 15:33:09 +00:00
ober
86724c8c4c Remove pccons as it is gone forever. 2007-12-08 15:31:16 +00:00
ad
5870896633 Grab ump->um_lock in another spot. 2007-12-08 15:23:32 +00:00
ad
c27abd2a99 Add some comments. 2007-12-08 15:21:19 +00:00
ad
7c9b007bbc Destroy ovm_hashlock before freeing. 2007-12-08 15:12:15 +00:00
ad
0444cfe507 Use kmem_alloc/free. 2007-12-08 15:10:22 +00:00
ad
5e0c5eae3c Unbork 2007-12-08 15:04:29 +00:00
ad
a9eb927490 Merge from vmlocking2: don't hold semlock across copyin(). 2007-12-08 15:02:46 +00:00
ad
461cd942ea Merge changes from vmlocking2 branch. 2007-12-08 15:00:13 +00:00
ad
1bea664342 Merge ihash locking changes from the vmlocking branch. 2007-12-08 14:48:33 +00:00
ad
6a3b582fe3 Merge locking changes + fixes from the vmlocking branch. 2007-12-08 14:41:11 +00:00
ad
e1d841a734 struct lock -> kmutex_t 2007-12-08 13:54:32 +00:00
elad
51fe5bc63c Replace usage of p_cred in kauth(9) call with kauth_cred_get().
okay yamt@.
2007-12-08 13:31:03 +00:00
ad
9c8beda3c8 Reg... hang on, why don't we build this at compile time?!? 2007-12-07 22:42:11 +00:00
ad
bca34dfe7a Add: _lwp_setname, _lwp_getname, _lwp_ctl. 2007-12-07 22:41:05 +00:00
ad
558a5ffd0f rtld changes for PR bin/37347:
- Apply patch from J.T. Conklin to execute .init/.fini functions in order.
- Support DF_1_INITFIRST and mark libc with DF_1_INITFIRST. Shared libs
  should be recording a dependency on libc, but it's too late to do that.

Ok christos@.
2007-12-07 20:34:04 +00:00
xtraeme
d77a6c713d Print the informational messages after all checks have been done,
and while I'm here change some of those to be aprint_debug(). Also
use __func__ rather than __FUNCTION__.
2007-12-07 20:33:27 +00:00
elad
3668e580ae Use struct initializers. No functional change. 2007-12-07 19:46:18 +00:00
elad
5a24b726ae Let this code compile.
Hi, liamjfoy@. :)
2007-12-07 19:44:38 +00:00
elad
5551af680e Use struct initializers. No functional change. 2007-12-07 18:49:35 +00:00
macallan
f2c6ff7989 finish mutexification, now ki2c compiles again 2007-12-07 16:01:19 +00:00
xtraeme
10f7c0a4da Add BIOC_SVMIGRATING to bio(4) and bioctl(8) to report if a volume
is migrating currently showing the percentage.

Update arcmsr(4) to report this, like:

$ sudo ./bioctl -h arcmsr0
    Volume Status     Size Device
 arcmsr0 0 Migrating  698G ARC-1210-VOL#00 RAID 5 7% done
	 0 Online     234G 0:0.0   noencl <WDC WD2500YS-01SHB1 20.06C06>
	 1 Online     234G 0:1.0   noencl <WDC WD2500YS-01SHB1 20.06C06>
	 2 Online     234G 0:2.0   noencl <WDC WD2500YS-01SHB1 20.06C06>
	 3 Online     234G 0:3.0   noencl <WDC WD2500YS-01SHB1 20.06C06>
$
2007-12-07 11:51:21 +00:00
xtraeme
820f120b52 Add ENVSYS_DRIVE_MIGRATING for ENVSYS_DRIVE sensors, this is for RAID
volumes that are migrating such as when you change the stripe size.

While I'm here use the same string than we had in the old framework to
report status "online" vs "drive is online", because the sensor might be
a RAID volume and not just a drive.
2007-12-07 11:47:49 +00:00
xtraeme
383db93ca3 Enable arcmsr(4). 2007-12-07 10:13:22 +00:00
xtraeme
2a8e937fbd - Improve the locking based in comments from ad@.
- malloc(9) -> kmem(9) now that most of the bio code doesn't need to run
  on interrupt context.
- Reduce code that runs in interrupt context to a small part in
  arc_msgbuf() and is protected by arc_lock()/arc_unlock().

Reviewed and help by ad@.
2007-12-07 08:50:36 +00:00
bjs
2e1c69e6e8 Bring in some modest fixes from GIT that seemed appropriate to me and did not
break functionality.  I've tested this on a PCIE R423 (X800).

- In drm_drv.c, check that the requested context lock matches the holder
of the lock.

- Unify radeon offset checking.  (r300_cmdbuf.c, radeon_drv.h, radeon_state.c)
[Replace r300_check_offset() with generic radeon_check_offset(), which doesn't
reject valid offsets when the framebuffer area is at the very end of the card's
32 bit address space. Make radeon_check_and_fixup_offset() use
radeon_check_offset() as well.
This fixes https://bugs.freedesktop.org/show_bug.cgi?id=7697]

NOTE: There is another AGP fix that I didn't have time to merge
that I thought might help with getting this to work on macppc.
Contact me if you're interested. Hi macallan@! ;)

radeon_cp.c, radeon_drv.h: (GIT id: bb5f2158dbd30dbbffa3881fac75b71d71ecaaf9)
- set the address to access the aperture on the CPU side correctly
[This code relied on the CPU and GPU address for the aperture being the same,
On some r5xx hardware I was playing with I noticed that this isn't always true.
I wonder if this will fix some of those r4xx DRI issues we've seen in the past.]

- Commit the ring after earch partial texture. (radeon_state.c)
(GIT ID: ac8406420ea80ffe5ccaadc1ff0124f95709a23d)
[Commit the ring after each partial texture upload blit.
This makes sure each blit starts as early as possible, which may improve
texture upload performance in some cases.]

If anyone's having any issues in particular--especially those which
can be _teased apart from AGP driver issues--please let me know
and I'll investigate.  Thanks.  There are also tons of fixes for the i915,
but I don't want to change too much at once.
2007-12-07 08:02:48 +00:00
ad
4a57ad63bb Make it compile. 2007-12-06 21:01:49 +00:00
bouyer
287c4eac96 Remove MAXPHYS=32768 (coming from a too large cut-n-paste), it's not needed
for dom0 kernels.
2007-12-06 20:02:02 +00:00
ad
e23d4a9b80 Nothing uses shared -> exclusive upgrades any more, so remove the code.
This is good since they are effectively the same as ...

	lockmgr(&lock, LK_RELEASE);
	lockmgr(&lock, LK_EXCLUSIVE);

.. and therefore don't behave as expected.
2007-12-06 17:05:07 +00:00
ad
065b6ba2fb lockmgr -> mutex 2007-12-06 17:00:31 +00:00
ad
937533671d lockmgr -> rwlock 2007-12-06 14:53:35 +00:00
ad
c519a6851b Correct argument shuffling in the string I/O functions. 2007-12-06 14:40:28 +00:00
ad
5921ed7cda Share cpu_intr_p() with xen. Why xen has its own intr.c is a mystery. 2007-12-06 13:58:38 +00:00
dyoung
9fd5916940 Fix a serious regression: insert new ifaddrs at the end of if_addrlist,
not at the front, because the first ifaddr on the list has special
significance (grrr).
2007-12-06 02:23:42 +00:00
rmind
6fcda0686a Increase the default limit of SEM_MAX, allow changing of limit
dynamically via sysctl.  Closes PR/36979.
2007-12-06 01:27:21 +00:00
ad
f2fb0b3870 mutex_init: use 'if' instead of 'switch' to avoid complaints from the
compiler.
2007-12-06 01:18:46 +00:00
dyoung
b579a81e92 Use ifa_insert(), ifa_remove(). 2007-12-06 00:28:36 +00:00
dyoung
7a3c43874a Add ifa_insert() and ifa_remove() that add/remove an ifaddr to/from
an interface and increase/decrease its reference count.
2007-12-06 00:23:09 +00:00
dyoung
b8f324fabd Extract common code, creating a subroutine if_purgeaddrs(ifp,
family, purgeaddr) which applies function `purgeaddr' to each
address on `ifp' belonging to `family'.
2007-12-05 23:47:17 +00:00
gmcgarry
11f250300f Fix locking botch. 2007-12-05 23:20:27 +00:00
dyoung
b039c2dbef Use IFADDR_FIRST(), IFADDR_NEXT(). 2007-12-05 23:00:58 +00:00
dyoung
0bf994db38 Use IFADDR_FIRST() and IFADDR_NEXT(). 2007-12-05 22:56:51 +00:00
dyoung
498e382747 Use IFADDR_FIRST(), IFADDR_NEXT(). 2007-12-05 22:56:02 +00:00
dyoung
adde197943 Use IFADDR_EMPTY(). 2007-12-05 22:51:01 +00:00
dyoung
0ecaa37d9b Use IFADDR_FIRST(), IFADDR_NEXT(), IFNET_NEXT(). 2007-12-05 22:50:00 +00:00
he
cf18b9fe3e Remove reference to now-obsolete powerpc/softintr.c. 2007-12-05 20:55:26 +00:00
xtraeme
21d75f870d Boh! I spoke too soon before, without the rwlock(9) sometimes
arc_wait() waits forever, so put it back until I figure any other way
to remove the rwlock(9).
2007-12-05 18:58:00 +00:00
xtraeme
1b48221099 Use SCSIPI_CHAN_NOSETTLE... the driver doesn't have to wait. 2007-12-05 18:25:53 +00:00
dyoung
550024b13d Use IFADDR_EMPTY().
(This driver should go away, comments indicate that it does not
even compile.)
2007-12-05 18:23:23 +00:00
xtraeme
dc5ade8ebb Make it use mutex(9) and condvar(9), bye bye spl(9) and tsleep(9).
Fully stable with all debugging options turned on, unless someday any
problem appears :-)
2007-12-05 18:07:34 +00:00
dyoung
67637efccc Add IFNET_FIRST(), IFNET_NEXT(), IFADDR_FIRST(), IFADDR_NEXT(),
IFADDR_EMPTY().

Call the IF{NET,ADDR}_FOREACH() macro arguments __ifp and __ifa
instead of ifp and ifa.
2007-12-05 18:07:21 +00:00
pooka
4e38160d4d Do not "return 1" from kqfilter for errors. That value is passed
directly to the userland caller and results in a mysterious EPERM.
Instead, return EINVAL or something else sensible depending on the
case.
2007-12-05 17:19:46 +00:00
he
70568171d3 Bump SYMTAB_SPACE so that it fits again. 2007-12-05 16:59:50 +00:00
xtraeme
220ed74e1e - arc_msgbuf: free wbuf and rbuf with the correct type (M_TEMP vs M_DEVBUF)
this fixes a panic with debugging options.
- Do not use a callout to refresh sensor data, and make it available
  every time someone requests it.
- Enable ENVSYS_FMONSTCHANGED for notifications in the volumes.
2007-12-05 16:02:25 +00:00
tsutsui
ce1de729ff Restore ipl settings for AV class Macs. 2007-12-05 12:51:49 +00:00
tsutsui
99221a563b Use TAILQ_FIRST(3) and TAILQ_NEXT(3) macro. 2007-12-05 12:31:25 +00:00
pooka
7d5d7f4ff9 Send a response message for flush operations from the kernel instead
of abusing the return value of write(2).
2007-12-05 12:11:56 +00:00
tsutsui
df1fb18927 Use queue(3) macro. 2007-12-05 12:03:08 +00:00
yamt
65e70dc43b include mutex.h. 2007-12-05 12:01:24 +00:00
yamt
bdc83d4098 g/c uvm_vnp_sync 2007-12-05 09:37:34 +00:00
yamt
83e62acd43 fix UBC_WANT_UNMAP.
- check PMAP_CACHE_VIVT after pulling pmap.h.
	- VTEXT -> VI_TEXT.
2007-12-05 09:35:46 +00:00
xtraeme
9d0a9ec5d9 Add arcmsr(4) and aps(4). 2007-12-05 09:10:25 +00:00
ad
73b6db8481 Make it compile. 2007-12-05 08:45:30 +00:00
ad
a0ca06de3d lockmgr -> mutex 2007-12-05 08:39:46 +00:00
ad
78090667c0 Kill ref to lockmgr in comments (for grep). 2007-12-05 08:34:41 +00:00
ad
a5bdf04ea6 lockmgr -> rwlock 2007-12-05 08:33:23 +00:00
ad
6874e511b7 lockmgr -> mutex 2007-12-05 07:58:29 +00:00
ad
5a24480bf8 lockmgr -> mutex 2007-12-05 07:15:53 +00:00
ad
598ab03ad0 Match the docs: MUTEX_DRIVER/SPIN are now only for porting code written
for Solaris.
2007-12-05 07:06:50 +00:00
ad
ba369f0439 MUTEX_SPIN -> MUTEX_DEFAULT. 2007-12-05 06:52:27 +00:00
ad
8cd835a351 pool_init, pool_cache_init: hack around IP input processing which can
not yet safely block without severely confusing soo_write() and friends.
If the pool's IPL is IPL_SOFTNET, initialize the mutex at IPL_VM so that
it's a spinlock. To be dealt with correctly in the near future.
2007-12-05 06:52:01 +00:00
ad
b21038696d mutex_init: make MUTEX_DEFAULT + IPL_SOFT* return an adaptive mutex. 2007-12-05 06:50:07 +00:00
dyoung
8abfe600f2 Avoid casts, change (struct ifaddr *)ia to &ia->ia_ifa. 2007-12-05 01:20:01 +00:00
dyoung
8e3ac3ec9f Use IFADDR_FOREACH(). 2007-12-05 01:17:16 +00:00
dyoung
399c4bed3c Bring this dead code, aa_clean(), into the 21st century, *shrug*.
Use IFADDR_FOREACH().
2007-12-05 01:16:02 +00:00