Commit Graph

166417 Commits

Author SHA1 Message Date
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
ad
aeeed1e5b6 Make it compile. 2008-01-30 14:57:24 +00:00
ad
e872dcb05d +#include <sys/atomic.h> 2008-01-30 14:56:44 +00:00
ad
0430885280 Goodbye lockmgr(). 2008-01-30 14:54:25 +00:00
ad
08da6a8594 Replace use of lockmgr. 2008-01-30 14:54:01 +00:00
ad
4df5af489b vlockstatus: return LK_EXCLOTHER as appropriate, for LFS. XXX 2008-01-30 14:53:41 +00:00
ad
7356aff6af Replace use of LK_SLEEPFAIL. 2008-01-30 14:50:28 +00:00
hannken
ee150e014e Lock swapdev_vp for VOP_OPEN.
From: YAMAMOTO Takashi <yamt@netbsd.org>
2008-01-30 14:25:21 +00:00
ad
10d0c9041f +UFS_EXTATTR 2008-01-30 14:24:11 +00:00
ad
162c8882a2 These interfaces have been obsoleted and removed from the system.
Please see the condvar(9), mutex(9), and rwlock(9) manual pages for
     information on kernel synchronisation primitives.
2008-01-30 14:18:53 +00:00
ad
2290e4283f Expunge references to lockmgr. 2008-01-30 14:16:42 +00:00
ad
549e8ec8b9 Has this compiled recently? 2008-01-30 14:12:20 +00:00
ad
90e58d8323 Remove lock/simplelock cruft. 2008-01-30 14:11:33 +00:00
tsutsui
664eeccc0e Fix for v_specinfo removal. 2008-01-30 14:10:25 +00:00
ad
9ef95126d8 Replace crufty use of lockmgr. 2008-01-30 14:08:00 +00:00
tsutsui
ff536c35f7 Add a definition for Fujitsu PenCentra 200 and enable wsmouse at ucbtp.
Tested and requested by Risto Sainio.
2008-01-30 13:49:09 +00:00
tsutsui
3676ae8965 Add options COMPAT_16, COMPAT_20 and COMPAT_30 as well as GENERIC.
Requested by Risto Sainio in PR port-hpcmips/37911.
2008-01-30 13:31:02 +00:00
yamt
195ce1f164 pmap_page_remove: add a reference to the pmap earlier and comment why. 2008-01-30 13:28:29 +00:00
yamt
008913ddc2 pmap_remove_ptes, pmap_remove_pte: fix a panic seen on pkgbuild,
reported by S.P.Zeidler.
after recent locking changes, these assertions are no longer true.
2008-01-30 13:26:09 +00:00
ad
abbfb97dd2 vlockmgr: return EBUSY when trylock fails, not EDEADLK.
Pointed out by yamt@.
2008-01-30 12:33:45 +00:00
he
0a4814ccdc Do a dummy pmf_device_register() in pcppi_attach() instead of only
in pcppi_isa_attach(), so that pcppi at acpi doesn't become an obstacle
to suspending.

Looked over by jmcneill.
2008-01-30 12:30:01 +00:00
ad
ef1a8a69fc 4.99.52 - vnode, mount locking changes 2008-01-30 12:19:22 +00:00
simonb
a4c23df6ce Add a simple resume hook that just calls bce_reset(), and register
this with pmf_device_register().

Makes suspend/resume with bce happy.  Much thanks to Jared for help here.
2008-01-30 12:00:35 +00:00
ad
e556d15453 Make it compile. I'll leave it to pooka to figure out what is the correct
thing here because I don't understand what this code is doing.
2008-01-30 11:57:24 +00:00
simonb
fb673d9599 WextraRemove unused DPRINTF/DPRINTFN macros.
Remove NetBSD 1.6 compatibility checks (way out of date).
Be somewhat consistent (and closer to KNF) with whitespace.
Use uintN_t instead of u_intN_t.

No functional changes.
2008-01-30 11:54:08 +00:00
ad
25153c3ec9 PR kern/37706 (forced unmount of file systems is unsafe):
- Do reference counting for 'struct mount'. Each vnode associated with a
  mount takes a reference, and in turn the mount takes a reference to the
  vfsops.
- Now that mounts are reference counted, replace the overcomplicated mount
  locking inherited from 4.4BSD with a recursable rwlock.
2008-01-30 11:46:59 +00:00
ad
508b2997d7 Fix pasto. Spotted by pooka@ 2008-01-30 10:22:02 +00:00
ad
3490efcc63 Replace struct lock on vnodes with a simpler lock object built on
krwlock_t. This is a step towards removing lockmgr and simplifying
vnode locking. Discussed on tech-kern.
2008-01-30 09:50:19 +00:00
ad
3da93d9e92 splhigh == splipi 2008-01-30 09:02:46 +00:00
lukem
d9ce2acdd5 Explicitly note the unsupported requests from RFC 2228.
Improvements from FreeBSD:
* Document `ftp-chroot' from login.conf(5).
* Document that SIZE is prevented for files > 10240 bytes via ASCII transfers.
2008-01-30 02:16:35 +00:00
jmcneill
f5f534770c pmf: Naively track online/offline state of APs during suspend/resume. 2008-01-30 01:10:21 +00:00
jmcneill
a9ec01ccfb pmf_event_deregister was passing M_WAITOK to free instead of M_DEVBUF,
pointed out by simonb
2008-01-30 00:50:17 +00:00
ad
ec93662039 Another locking botch. 2008-01-30 00:43:47 +00:00
mrg
9e023272db initialise "paddr_t lastaddr" to 0 in the cases it is not otherwise
set.  previously, if the stack garbage happened to match the
"curaddr" in _bus_dmamap_load_buffer(), the wrong thing may have
happened.
2008-01-29 23:46:21 +00:00
tron
ce82b598ec Add support for function keys F16 to F19 as present on e.g. the new
Apple aluminum keyboard.

Patch contributed by Michael Piotrowski in PR kern/37788, reviewed
by Matthias Drochner.
2008-01-29 20:54:32 +00:00
tls
651160c66b Fix accidental checkin inverting the sense of cryptodev_allowsoft, which
is crazy but has always documented.
2008-01-29 20:33:44 +00:00
tls
16a9229cf8 Sigh. What was meant here was an ITR register value of 1500, for 2604
interrupts/sec -- not the other way around.  Caught by yamt.

When I can confirm that it won't lock the chip up on the models claimed
to be problematic, I'll probably adjust the packet timers a bit further
to see if I can get latency down under low load.  But this should be
better.
2008-01-29 20:24:41 +00:00
xtraeme
d187549ef6 Pass the same size to kmem_alloc(9) and kmem_free(9), this fixes
the kmem_poison_check panic on DEBUG kernels.
2008-01-29 19:35:05 +00:00
skrll
f7a8a22745 Catch up with "Refactor in_cksum/in4_cksum/in6_cksum implementations".
Hi Joerg.
2008-01-29 19:29:37 +00:00
skrll
dbf783eccf bcopy -> memcpy 2008-01-29 18:46:18 +00:00
pooka
81de436273 init genfs_node before potential vput() 2008-01-29 18:22:24 +00:00
pooka
13d9236c46 Nuke #ifdef __OtherOS__ clutter to make maintaining slightly easier. 2008-01-29 18:21:10 +00:00
pooka
bc13687cf3 default owner to getuid() 2008-01-29 18:17:21 +00:00