jld
0ebf778b9d
The poll routine needs to return POLLERR on error, not an errno. Sorry
...
about that. Pointed out by Juergen Hannken-Illjes in mail.
2006-09-30 21:00:13 +00:00
elad
b8a339347f
Implement the "device" scope.
...
It uses an authorization wrapper per device class on the system to
ensure type-safety.
For now, it supports only terminal (TTY) devices, and has two actions
for them: "open terminal" and "privileged set". Sample usage has been
added to i386 and hp300 code for reference.
Update documentation.
2006-09-30 20:05:57 +00:00
bjh21
e9030bd381
Move over to using the standard ARM bus_space implementation on acorn26.
...
This is more flexible than the old acorn26 bus_space, which means that single
read/write operations are slower, but multi and region operations have the
potential to be faster, and particularly insane podules might be supportable.
In theory the acorn32 mainbus and podulebus code ought to be shareable, but
acorn26 needs the extra overhead of saving R14_svc on some operations so
I've made my own version for now. Also the acorn32 bus_spaces are a mess.
2006-09-30 16:30:10 +00:00
yamt
7e4975c5e3
don't use japanese for an identifier.
2006-09-30 16:14:00 +00:00
yamt
606f2d8add
wrap a long line.
2006-09-30 16:01:19 +00:00
itohy
f87d591722
A little effort against kernel bloat....
...
Exclude ATA DMA support if no ATA DMA capable drivers are compiled in.
2006-09-30 15:56:17 +00:00
yamt
883278d33e
whitespace.
2006-09-30 15:52:39 +00:00
tsutsui
8e1de5f3ab
Unmap pmap region in bus_mapout() as well as sun3/sun3/bus_subr.c does.
2006-09-30 15:49:30 +00:00
yamt
04a8266e88
add ubc window hit/miss evcnts.
2006-09-30 15:38:06 +00:00
yamt
7e1b20a4cf
ubc_fault: check UVM_OBJ_NEEDS_WRITEFAULT.
...
fix an assertion failure in genfs_putpages when using msdosfs.
(http://mail-index.NetBSD.org/tech-kern/2006/09/27/0002.html )
reported and tested by Darrin B.Jewell.
2006-09-30 15:37:22 +00:00
bjh21
213f273e6a
Calls to bus_space_barrier() on acorn26 were very few and using constants that
...
were two generations obsolete. Since they do nothing anyway, remove them
rather than trying to update them.
2006-09-30 15:14:21 +00:00
tsutsui
5237db51b1
Update a comment and some cosmetics.
2006-09-30 13:57:00 +00:00
tsutsui
13be5e3419
cosmetics
2006-09-30 13:54:53 +00:00
tsutsui
68219aadd9
- move m68k common stuff from files.sun2 to files.sun68k
...
- use common dev/sun/disksubr.c
2006-09-30 13:43:08 +00:00
tsutsui
aa54c659e7
Move declarations of mainbus_dma_tag and mainbus_space_tag
...
to <sun68k/autoconf.h>.
2006-09-30 13:37:32 +00:00
elad
5ec8c535f2
PR/34648: Nino Dehne: Kernel panic when using NFS root and configuring an
...
interface that needs firmware
Firmload routines were using FSCRED, which in this case would get to the
NFS code and dereferenced, resulting in a panic. Use the credentials from
the LWP instead.
2006-09-30 12:47:32 +00:00
yamt
11ac1566d0
- KERNEL_LOCK_ASSERT_LOCKED: check cpu_biglock_count as well.
...
- implement KERNEL_LOCK_ASSERT_UNLOCKED.
2006-09-30 11:59:37 +00:00
yamt
3606cbeb14
constify ttydefchars.
2006-09-30 11:58:44 +00:00
elad
53ca07b4d7
If Veriexec enforces access type, don't allow mmap() to use PROT_EXEC on
...
files that don't have the "indirect" flag. Also change the "library" alias
in veriexecctl(8) to mean "file, indirect".
okay blymn@
2006-09-30 10:56:31 +00:00
yamt
3545644943
more todo.
2006-09-30 09:07:45 +00:00
yamt
1da8d3a36e
note what's this.
2006-09-30 09:03:19 +00:00
yamt
a5c3459e65
implementations of some replacement algorithms for comparison.
2006-09-30 09:00:00 +00:00
yamt
2ebf73755e
a script to modify a list so that it uses small numbers as far as possible.
...
useful when feeding real world examples into a hackish code like lirs.c
which can't handle large numbers.
2006-09-30 08:57:17 +00:00
yamt
adf92c530f
implementations of some replacement algorithms for comparison.
2006-09-30 08:50:32 +00:00
yamt
538ff1a080
an artificial access pattern generator.
2006-09-30 08:48:17 +00:00
yamt
94330f3fe8
a simple program to test uvm_pdpolicy_*.c in userland.
2006-09-30 08:47:39 +00:00
seanb
dfb8aa55d3
- Avoid array overrun in kfilter_byname_user() when all user
...
kfilter slots are used: no guarantee previously that last
slot had a NULL name.
- Reuse previously deregistered user kfilter slots in
kfilter_register().
2006-09-30 02:39:18 +00:00
macallan
ed1eed3512
add timecounter support, mostly from prep.
2006-09-29 22:20:08 +00:00
cube
86f0ff14cc
Regen.
2006-09-29 20:49:48 +00:00
cube
a556b65796
Add ids of devices found in the nForce 570 chipset.
...
Add GeForce 6200LE.
2006-09-29 20:48:41 +00:00
christos
804dfaa036
Coverity CID 2960: Don't print NULL vnode (from Arnaud Lacombe)
2006-09-29 19:41:16 +00:00
christos
1d0edbd583
Coverity CID 2951, 2953, 2954: Add KASSERTS before null deref
2006-09-29 19:39:43 +00:00
christos
f1a4e9cae0
Coverity CID 2949: comment out dead code (from Arnaud Lacombe)
2006-09-29 19:37:11 +00:00
tsutsui
7db79c4e79
- KNF
...
- u_intNN_t -> uintNN_t
- misc cosmetics
2006-09-29 18:56:29 +00:00
christos
f89dbcf8f7
Coverity CID 2435: Add KASSERT before NULL deref (from Arnaud Lacombe)
2006-09-29 18:30:37 +00:00
tsutsui
60abfbb6b9
ANSIfy.
2006-09-29 18:27:51 +00:00
tsutsui
0afee5cb99
TAB/space cleanup.
2006-09-29 18:20:02 +00:00
tsutsui
ab86520375
Set a timeout only if any TX packet is actually queued.
2006-09-29 16:46:49 +00:00
tsutsui
7d6d7a0b22
rtk_intr() should return 1 only if any interrupts are actually handled.
2006-09-29 16:40:15 +00:00
cube
155a80cb76
A local change crept in when it wasn't meant to, I suppose. [hi rjs!]
2006-09-29 16:39:27 +00:00
tsutsui
4c0a796caa
Use `SIMPLEQ_EMPTY()' rather than `SIMPLEQ_FIRST() == NULL'.
2006-09-29 16:38:16 +00:00
tsutsui
a63cbd1696
Handle more wraparound case on RX ring-buffer calculation.
...
(it might cause problem only if RTK_RXBUFLEN < 64KB)
2006-09-29 16:33:41 +00:00
drochner
429dff1c3d
Flush regular files before setattr also if the mode bits are going to
...
be set. Linux NFS servers (at least) reset suid/sgid bits if a write
happens afterwards. Add a comment why this is done.
This fixes system builds on diskless systems for me where suid bits
were missing after install(1).
Approved by yamt.
2006-09-29 16:19:50 +00:00
pooka
751537fe38
Make these work again. I know, I'm a bit impatient, since they've
...
only been broken for 12 years, but some things are better done
sooner than later.
While meddling here, introduce mp_vchain, which prints the vnode
chain given a mount point.
2006-09-29 15:43:06 +00:00
christos
43fe375242
Coverity CID 3664/2964: Add KASSERTS before dereferencing l, p; these really
...
can't be NULL at this point, but adding the checks does not hurt
(from Arnaud Lacombe)
2006-09-29 14:48:15 +00:00
christos
03a48a92ca
Coverity CID 4027: Initialize oldphys (from Arnaud Lacombe)
2006-09-29 14:41:32 +00:00
christos
4589200621
Coverity CID 3801: Plug memory leak (from Arnaud Lacombe)
2006-09-29 14:39:09 +00:00
christos
95d484d975
Coverity CID 4151: Don't forget to close the firmware file (from Arnaud Lacombe)
2006-09-29 14:38:04 +00:00
christos
ca42d11f95
Coverity CID 3786: Fix memory leak (from Arnaud Lacombe)
2006-09-29 14:36:30 +00:00
christos
13528a299f
Coverity CID 3666: Remove debug to expose KASSERT's (from Arnaud Lacombe)
2006-09-29 14:33:52 +00:00