Commit Graph

1275 Commits

Author SHA1 Message Date
yamt
3f0f3de613 update comments on NFS_V2_ONLY after nqnfs removal. no functional changes.
from Arnaud Lacombe.
2006-12-29 21:49:03 +00:00
yamt
8bf7662829 merge yamt-splraiseipl branch.
- finish implementing splraiseipl (and makeiplcookie).
	  http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html
	- complete workqueue(9) and fix its ipl problem, which is reported
	  to cause audio skipping.
	- fix netbt (at least compilation problems) for some ports.
	- fix PR/33218.
2006-12-21 15:55:21 +00:00
scw
e07faf8a74 Replace the myriad copies of bounds_check_with_label() with a single MI
version.

Add disk_blocksize(9) so that disk drivers can record the physical
block size of a disk if it is different to DEV_BSIZE. Right now this
simply initialises dk_blkshift and dk_byteshift according to the
supplied block size. This information is used in the MI version of
bounds_check_with_label().
2006-11-25 11:59:55 +00:00
wiz
6919c6578c s/independant/independent/, from Zafer. 2006-11-24 22:04:21 +00:00
jmmv
7a13fe4abf Remove tmpfs's experimental status. OK'ed by core@. 2006-11-11 18:47:08 +00:00
bjh21
7acb866d02 All of the older COMPAT_?? options imply COMPAT_13, so there's no need to
check each one individually.
2006-11-11 16:58:04 +00:00
he
19b3e362f5 Work around the propagation of volatile-ness from struct to struct members.
OK'ed by nsmrtks.
2006-10-29 16:05:15 +00:00
mrg
648bbec934 in cpu_dumpconf(), don't panic() if we can't bdevsw_lookup() the
dumpdev.  this occurs when we try to set the dumpdev to a device
with no driver loaded.  this fixes PR#34872.

in sys_swapctl, if bdevsw_lookup() fails, set dumpdev = NODEV
before calling cpu_dumpconf().  (this also fixes PR#34872.)

XXX: cpu_dumpconf() should probably be changed to take a dumpdev
XXX: and return an error in such cases, but that is a much more
XXX: intrusive change.

XXX2: this is only run-tested on sparc64 and compile tested on a
XXX2: couple of platforms.
2006-10-21 05:54:31 +00:00
chs
e8295642bd remove MALLOC_NOINLINE, it doesn't do anything anymore. 2006-10-02 03:28:29 +00:00
elad
65792a0340 More from Matt Fleming:
Adapt to KAUTH_DEVICE_TTY_PRIVSET and KAUTH_DEVICE_TTY_OPEN.
2006-10-01 20:31:49 +00:00
elad
bdc51baebb Adapt MD code to KAUTH_DEVICE_TTY_OPEN, batch #2 from Matt Fleming, thanks!
Also, add forgotten splx() calls in some places.
2006-10-01 19:28:43 +00:00
pavel
c1ebd304cc Replace wrong tests for character device (st.st_mode & S_IFCHR) by
S_ISCHR. Originally discovered by Paul Stoeber in OpenBSD.

OK elad@.
2006-09-23 20:10:14 +00:00
gdamore
b7648fa4c0 Convert x68k to timecounters. This conversion is not tested, due to lack
of available test candidates.  It uses the previously unused (as far as I
can tell) Timer D, in freerunning mode.  It only uses a 1/200 prescaler
(20KHz), as anything faster would roll over too fast for the system timer.
(Gotta love 8-bit resolution timers!)  Approved for untested commit by core@.
2006-09-19 10:13:10 +00:00
gdamore
87f5e200d4 Convert references to "time" to calls to "getmicrotime()", needed for
conversion to timecounters.
2006-09-18 22:10:49 +00:00
gdamore
29dad6a290 Converted x68k to todr. Compile tested only, but it has a low probably
of breaking anything.
2006-09-14 01:18:11 +00:00
he
4c2420029f Add duplicate include protection to <dev/sun/kbio.h>.
Make the x68k port use this include file, so that what remains
is only the port-specific additions.
2006-08-28 17:15:24 +00:00
he
03d728a806 Collapse two more separate instances of MD vuid_event.h header
files to instead use the common <dev/sun/vuid_event.h> header.
2006-08-28 16:52:09 +00:00
christos
e0df1e4c51 PR/34283: Gene ENonymous: Add IPFILTER_LOOKUP to the default kernel options
Also remove CCITT,NS,NIP
2006-08-26 20:26:43 +00:00
tsutsui
6ff205ce76 Remove obsolete #options VERIFIED_EXEC, found by grep(1). 2006-08-26 07:59:21 +00:00
skrll
1a3062e81b s/adpater/adapter/
Prompted by PR/34195
2006-08-14 06:22:33 +00:00
christos
b300b74469 Disable SYSTRACE by default on all kernels (discussed with core) 2006-08-12 15:29:52 +00:00
mhitch
74f4d61b61 gcc4 fix: change a couple of volatile void functions. 2006-08-04 02:32:30 +00:00
mhitch
710f94acb4 gcc4 fix: needs string.h 2006-08-04 02:30:48 +00:00
mhitch
856bf4faf5 gcc4 fix: needs stdlib.h 2006-08-04 02:30:00 +00:00
mhitch
1b474f00d6 gcc4 fix: change prototype and definition of volatile void usage(). 2006-08-04 02:23:23 +00:00
mhitch
370e3a585e gcc4 fix: need to cast string variable. 2006-08-04 02:21:19 +00:00
mhitch
8511e80fdb gcc4 fix: gcc4 more strict on checking signed/unsigned. 2006-08-04 02:19:55 +00:00
mhitch
5a37c00320 gcc4 fix: gcc4 bug generates a label twice. This label can't be conveniently
ignored like bpendtsleep, but a clue from the commit skipping the bpendtsleep
label for vax provides a workaround.  Move the label to an earlier location
and gcc4 only generates one label.  The label just marks the start of
memory protected during a memory test, so excluding a little more memory
from that test should be fine.
2006-08-04 02:17:34 +00:00
drochner
84f50d1b92 don't install <machine/db_machdep.h>, this is kernel only 2006-07-26 19:54:56 +00:00
ad
f474dceb13 Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
ad
2b79369c7e - Hold a reference to the process credentials in each struct lwp.
- Update the reference on syscall and user trap if p_cred has changed.
- Collect accounting flags in the LWP, and collate on LWP exit.
2006-07-19 21:11:37 +00:00
lukem
d315681443 Support MAKEVERBOSE 2006-06-29 03:46:43 +00:00
lukem
0de20fdaf1 Rename LDFLAGS to LINKFLAGS, as the former is for CC not LD. 2006-06-29 03:38:24 +00:00
liamjfoy
aeee5deab9 Add CARP to GENERIC kernel configs. CARP is not enabled by default.
ok: christos
2006-06-28 15:19:27 +00:00
yamt
b3b862261c include kauth.h for kauth_cred_geteuid. 2006-05-15 12:41:21 +00:00
elad
8ccb6c9341 integrate kauth. 2006-05-14 21:55:09 +00:00
skrll
a9f4c28a3d Fix a bunch of cast lvalues. 2006-05-10 06:24:02 +00:00
blymn
3c0adb7d99 Make i/o statistics collection more generic, include tape drives and
nfs mounts in the set of devices that statistics will be reported on.
2006-04-14 13:09:05 +00:00
thorpej
2be6494fc9 Use device_cfdata(). 2006-03-29 04:16:44 +00:00
pavel
dc1372c547 Add stf to all kernel configs which have INET6 and gif, except the INSTALL
ones and those for specific machines of developers. PR 32304.

OK'ed by rpaulo.

N.B. stf is a cloning device, so it still must be enabled by
"ifconfig stf0 create".
2006-03-28 20:58:39 +00:00
thorpej
39cd836ee1 Use device_unit(). 2006-03-28 17:38:24 +00:00
drochner
47fbb9d86b adapt to uvm_fault() interface cleanup: kill the useless 3rd argument 2006-03-15 18:12:02 +00:00
lukem
a1f606d3fd Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
Add a space between numbers and Hz unit.
2006-03-08 23:46:22 +00:00
he
3081ceee1a Remove another instance of the macro triplet SET/CLR/ISSET, now
found in <sys/types.h>.
2006-03-07 16:36:41 +00:00
wiz
5d1e8b2745 Fix some typos. 2006-02-25 02:28:55 +00:00
thorpej
458b3e43f7 Use device_parent(). 2006-02-23 05:37:46 +00:00
thorpej
58853410ae Use device_class() instead of accessing dv_class directly. 2006-02-21 04:32:38 +00:00
perry
fbae48b901 Change "inline" back to "__inline" in .h files -- C99 is still too
new, and some apps compile things in C89 mode. C89 keywords stay.

As per core@.
2006-02-16 20:17:12 +00:00
cube
6ff13154dd Remove 'count' argument for pseudo-devices that ignore it
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
2006-02-05 05:01:48 +00:00
rpaulo
fe78fe0b46 bpfilter doesn't accept count anymore. 2006-02-04 03:48:18 +00:00