Commit Graph

166609 Commits

Author SHA1 Message Date
tnn 54554bfd6e Update comments. 2008-02-01 09:39:20 +00:00
ad 234836feb7 Sync with reality. This is a work in progress. 2008-02-01 09:05:52 +00:00
skrll f5dc52a3c1 Initialise mnt_renamelock in vfs_rootmountalloc. 2008-02-01 08:53:19 +00:00
tls e17d3eea39 This code never worked on a released version of FreeBSD in the form it's
been in in our tree, and certainly does not work on any version of FreeBSD
now.  Run through unifdef -D__NetBSD__ -U__FreeBSD__ yielding a small
reduction of size and a dramatic improvement in readability.

No, this does not yield any meaningful decrease in patchability (unlike
mechanical changes that touch live source lines) -- try it and see.
2008-02-01 04:52:35 +00:00
christos 3f5a745e04 fix 0 bssid problem on rejoin. From FreeBSD. 2008-01-31 22:07:22 +00:00
christos a94d934365 Remove __PIC__ because on mips __PIC__ is used to indicate that the pic abi
is used, and it is set even in the absence of -fpic or -fPIC. Thanks to
tsutsui@ for the explanation.
2008-01-31 20:07:46 +00:00
plunky 6f45ff2e8b do not destroy session callout until the session is definitely finished
with, otherwise trying to stop it will cause a panic
2008-01-31 19:30:23 +00:00
markd 906c80684e s/AD1983_EVENT/AD198X_EVENT/ 2008-01-31 19:01:50 +00:00
markd 5dc269fc53 Use more meaningful names for AD1984 widgets.
Select dac as default input for internal mono speaker.
Handle jack pin detect for headphones and lineout on Dell Optiplex 755.
2008-01-31 18:58:57 +00:00
dyoung 3d8a594471 Let the compiler decide: inline -> static, register -> . 2008-01-31 18:45:45 +00:00
dyoung 8c145c8134 Cosmetic: constify, KNF, use device_t and accessors, use
aprint_normal_dev() instead of printf("%s: ...", dv->dv_xname).
2008-01-31 18:32:51 +00:00
dyoung cb8aa1ff9b Constify both struct disk->dk_name and the `name' argument to
disk_init().
2008-01-31 18:30:55 +00:00
tsutsui 636d4f1ae2 Account bi_size properly. 2008-01-31 17:38:56 +00:00
tsutsui 3bf45f63f8 Avoid using division ops in delay(9). 2008-01-31 17:37:45 +00:00
reed f8fd203aa2 Add comment to point to manual page for details. 2008-01-31 15:21:32 +00:00
jmmv af05f05499 Let Xen kernels build with "options MODULAR" enabled by pulling in the
appropriate kobj_machdep.c file.
2008-01-31 13:46:33 +00:00
ad d7b9a25622 Remove debugging code that's no longer needed. 2008-01-31 13:13:20 +00:00
ad d8251138f4 pthread_rwlock_wrheld_np: return true only if locked by the calling thread. 2008-01-31 11:50:40 +00:00
tnn 42efa34b27 wtf: I don't know what idk means!
^^^^^^^^^^^^
2008-01-31 11:45:16 +00:00
sborrill 00eb6ae835 Add EPIA_HACK so that boot loaders work on EDEN 5000 processors.
This worked in NetBSD 3, but broke by NetBSD 4.

My offer of a development machine to fix this one and for all is still open!
2008-01-31 11:11:09 +00:00
mlelstv 58dedb340c use the correct symbols 2008-01-31 10:07:09 +00:00
wiz 90783e5e06 Fix typo in comment. 2008-01-31 09:57:27 +00:00
simonb e99e83279b Check _STANDALONE as well as _KERNEL when choosing headers to include.
Also pull in <lib/libkern/libkern.h> so we get prototypes and a struct
mtprng_state declaration.
2008-01-31 08:23:13 +00:00
tnn d1e420ee23 - Needs sys/atomic.h for atomic_inc_uint()
- Quench compiler warning about signed/unsigned mismatch when building LKM
2008-01-31 08:23:04 +00:00
matt 14d4b29491 Add register{32,64}_t 2008-01-31 05:30:00 +00:00
dholland b67b08da79 Pedanticism about time_t (not really a bug, but now it won't show up when
audited.)
2008-01-31 05:22:45 +00:00
dholland d64494c758 Fix y2038 bug: time_t != int. 2008-01-31 05:19:44 +00:00
erh 570958013a Clarify what the format section of the cap_mkdb man page is talking about. 2008-01-31 04:00:54 +00:00
simonb 4cbecce6c5 Have mtprng_random() call mtprng_rawrandom() to get more
random data instead of calling itself.  Much nicer to the
stack...
2008-01-31 03:37:13 +00:00
simonb ba30aadce1 Check against correct constant in a KASSERT(). 2008-01-31 03:34:04 +00:00
christos d180539684 make the kernel link again from Henry Bent 2008-01-31 03:31:31 +00:00
christos bfd5f301c3 complete removal of soft interrupts from Henry Bent 2008-01-31 03:30:36 +00:00
matt 3056c4f69a Add Mersenne Twister prototypes and state struct to libkern.h
Cleanup a comment.  s/RLEN/MTPRNG_RLEN/g    s/POS1/MTPRNG_POS1/g
Remove unneeded test code.
2008-01-31 02:36:09 +00:00
matt cd27642585 Add Mersenne Twister PRNG implementation. This is a new implementation. 2008-01-31 02:09:54 +00:00
elad 17bc624c06 EACCES -> EPERM. 2008-01-31 01:21:17 +00:00
rmind 116ffc8d57 sigpost: convert to the new, inverted priorities.
From <drochner>.
2008-01-31 00:50:32 +00:00
rmind fb513e5cf5 - sched_cpuattach: fix address calculation, use roundup2();
Fixes the problems with systems having > 2GB of memory;
  From <drochner>, thanks for catching this!
- Convert pool to pool-cache;
- Adjust copyright while here;
2008-01-31 00:46:55 +00:00
jmcneill 5bc4e8c9fc Document improvements to azalia's Analog Devices AD1984 support. 2008-01-31 00:37:02 +00:00
jmcneill 89cbafc849 AD1984: Create a dummy outputs.master mixer knob that mirrors inputs.dac,
since AD1984 doesn't have a traditional master volume control.
2008-01-30 23:03:09 +00:00
jmcneill 77c34d4c1c AD1984: Use the same DAC for speaker and headphones, so the headphone jack
works as expected on Thinkpad T61 (and probably others).
2008-01-30 22:09:00 +00:00
njoly 1a6eaef2f2 Fix shm_cv/newshm_cv offset value by using the correct sizeof argument
(kcondvar_t -> struct shmid_ds).

ok by rmind@
2008-01-30 21:09:41 +00:00
ad 9cd350f0fb Crank maxusers to 64. 2008-01-30 19:58:19 +00:00
apb 9eaab5ee00 Mention use of /var/run/dev.db, and add .Xr dev_mkdb 8 .
Could somebody update the HISTORY?
2008-01-30 19:24:59 +00:00
elad fb37bad459 Use proper kauth(9) actions/requests for native scheduler stuff and the
recently introduced processor-sets.

Discussed with and okay rmind@, yamt@, and christos@.
2008-01-30 17:54:55 +00:00
hannken a524d758da Make it work after lockmgr -> vlockmgr conversion:
- Initialize si_vnlock in si_mount_init().
  - Also initialize vl_recursecnt to zero.
- Destroy it only in si_mount_dtor().
- Simplify the v_lock <-> si_vnlock exchange.
- Don't abuse the overall error variable for LK_NOWAIT errors.
- ffs_snapremove: release the vnode one instead of three times.
2008-01-30 17:20:04 +00:00
tsutsui d738ece669 Disable more options and file-systems to shrink install kernel. 2008-01-30 16:27:43 +00:00
tsutsui 0a692f373a Optimize for R4400 with CPUFLAGS since we don't support MIPS1 based EWS4800. 2008-01-30 16:27:10 +00:00
ad df774def20 Hold v_interlock when adjust v_writecount. 2008-01-30 15:42:52 +00:00
ad ab27a4b1d4 Remove code to prevent multiple open of block devices; it's no longer
needed.
2008-01-30 15:30:12 +00:00
ad a3f53add72 Back out previous to let rump compile. Needs to be handled differently. 2008-01-30 15:00:52 +00:00