Commit Graph

165774 Commits

Author SHA1 Message Date
elad
9798c4cd61 In svr4_32_sys_systeminfo(), remove two redundant kauth(9) calls for
SVR4_SI_SET_HOSTNAME and SVR4_SI_SET_SRPC_DOMAIN, as permission is already
checked by old_sysctl().

okay christos@.
2008-01-08 22:13:07 +00:00
elad
2395a8f2d2 In linux_sys_sysmips(), remove redundant kauth(9) call for LINUX_SETNAME
as the permission check is done by old_sysctl().

okay christos@.
2008-01-08 22:09:48 +00:00
elad
3d902dfb3e Make compat_43_sys_sethostid() use old_sysctl(), allowing for the removal
of a kauth(9) call.

okay christos@.
2008-01-08 22:08:45 +00:00
elad
145b26e5d2 In svr4_sys_sysarch(), remove redundant kauth(9) call. Permission is
checked by old_sysctl().

okay christos@.
2008-01-08 22:07:29 +00:00
martin
ececdb7913 When passing char (or unsigned char) arguments as int, assign them to a
temporary char (resp. unsigned char) before comparing, to force truncation
to the proper domain. This makes the coresponding regression tests succeed.
2008-01-08 21:57:06 +00:00
martin
8e4891367e cpu_intr_p() for sparc, from Andrew Doran. 2008-01-08 21:32:10 +00:00
christos
b2351ba0df pacify lint with casts. 2008-01-08 20:56:22 +00:00
christos
c6409540ef add missing static decls. 2008-01-08 20:56:08 +00:00
christos
6c924f05f9 cast -1 to unsigned int. 2008-01-08 20:55:58 +00:00
christos
72f5cf0283 no semis after weak alias. 2008-01-08 20:55:25 +00:00
joerg
34dc4c6501 Switch Xen to generic TODR. Tested by Manuel Bouyer. 2008-01-08 20:37:34 +00:00
seanb
fb884caea6 Shutdown sloop socket for read as it's never read on to
prevent mbufs from queueing in its recv buf.
PR:21459
2008-01-08 20:03:09 +00:00
bouyer
98b295d02d uobj->vmobjlock is a mutex these days. 2008-01-08 19:26:44 +00:00
bouyer
1ad062e684 Allocating up to 8k on stack isn't a good idea ... 2008-01-08 19:26:10 +00:00
dsl
7d4e4f0e9a The test for the 0xaa55 at the end of an extended partition pbr has always
been incorrect (and checked the end of the mbr - which always suceeds).
Rather than fixing the text, just delete it (saving 8 bytes from mbr_ext).
2008-01-08 18:31:56 +00:00
dyoung
50b7998db1 After rtw_attach() is called, the hardware has been powered down,
so don't fiddle with the Function Event Registers.
2008-01-08 18:26:09 +00:00
joerg
732cd3c8a0 Convert Atari to generic TODR and timecounter. 2008-01-08 18:04:15 +00:00
joerg
30cd7dc199 assym.h dependency. 2008-01-08 17:46:31 +00:00
tsutsui
03b0d74e1e Set proper mask values for ipl_sr_bits[] and
use C99 initializer to avoid confusion.
Tested on gxemul.
2008-01-08 16:15:04 +00:00
joerg
808b08ff6f Short-cut interrupt processing if device has been suspended.
uvm_fault reported by xtraeme.
2008-01-08 15:50:35 +00:00
reed
e25157a1c9 Sort a command. It was was renamed in 1.113 but not resorted.
(I noticed when reading man page but didn't quickly find what I was
looking for.)
Also add a missing period.
2008-01-08 15:28:31 +00:00
joerg
58facc2685 Remove __HAVE_TIMECOUNTER conditionals. 2008-01-08 14:46:28 +00:00
simonb
c4bf54683c Add timecounter support for sbmips machines and Broadcom SiByte CPUs.
Based on patch from joerg@, with tweaks by me to work with sbmips
non-use of the CP0 count/compare registers for clock interrupts.
2008-01-08 14:38:47 +00:00
dogcow
585198d4ab I'm not positive that the mips_ipl_si_to_sr assignments are correct - but
at least the thing compiles now.
2008-01-08 14:28:35 +00:00
dogcow
da6c04f088 explicitly include <sys/device.h> 2008-01-08 14:26:58 +00:00
joerg
a280711321 Mask is unsigned, add missing u. 2008-01-08 13:52:00 +00:00
joerg
18a5a8d13d Finish conversion of ppc and evbppc to timecounter.
Tested by simonb@ on WALNUT.
2008-01-08 13:47:49 +00:00
dogcow
ca9c510ab2 explicitly include simplelock.h 2008-01-08 13:28:22 +00:00
dogcow
b24bad5798 add include for incomplete struct blah blah blah 2008-01-08 13:26:26 +00:00
yamt
42f654a26b change the layout in u-area and reduce UPAGES. 2008-01-08 13:15:01 +00:00
yamt
74e0872eca simplify locking and remove vm_map_upgrade/downgrade.
this fixes a deadlock due to read-lock recursion of map->lock.
2008-01-08 13:09:55 +00:00
joerg
05379725b5 lock_stubs.S needs assym.h. 2008-01-08 12:17:32 +00:00
joerg
71990d8d21 ANSIfy. 2008-01-08 12:05:49 +00:00
simonb
99cad24ec6 GC this file - it should have been removed during the ppcoea-renovation
merge.
2008-01-08 11:54:47 +00:00
xtraeme
5fbecc2c56 Fix date for the tprof entry. 2008-01-08 09:29:22 +00:00
he
943b531346 Remove a no-longer-used local variable. 2008-01-08 07:59:23 +00:00
matt
e1adc2881b Add IPL_SOFT* defined at IPL_NONE.
Change _ARM32_INTR_H to _ACORN32_INTR_H
2008-01-08 06:30:22 +00:00
matt
306d43c5bf Remove unused variable. 2008-01-08 06:29:39 +00:00
matt
6d2503c7a9 Don't do arithmetic on void pointers. 2008-01-08 06:28:29 +00:00
dyoung
e0b21313b6 In device_foreach_child(), use a safe idiom for walking a list
whose elements we might be deleting.  This stops us from crashing
in config_detach_children().
2008-01-08 06:27:46 +00:00
matt
2414d5854f Make sys_swapctl match syscallargs.h 2008-01-08 06:25:55 +00:00
dyoung
b202d18acd Use aprint_*_dev(), device_xname(), and device_t. Join a line. 2008-01-08 04:47:44 +00:00
ginsbach
05d6614378 Fix PR/37710. Correct botched test result. This lead to an erroneous
regression failure.
2008-01-08 03:49:01 +00:00
dyoung
f384d52f35 Delete an unnecessary cast. 2008-01-08 03:37:45 +00:00
matt
6bc0c58216 As of this commit, all arm32 kernel now build. 2008-01-08 02:07:50 +00:00
matt
f4f1c6c970 More kernels SYMTAB_SPACE increased. 2008-01-08 02:06:43 +00:00
matt
04a4a202ed include "conf/std" 2008-01-08 02:05:30 +00:00
uwe
71fc6881ec In general_exception() in do_panic case print error message *before*
we drop into ddb.
2008-01-08 01:25:13 +00:00
gdt
1424adf410 Support FIONBIO.
Support non-blocking reads from USB printers.  With this, escputil can
query the printer model, and I can print a test page with gutenprint
5.1 and cups.   Add many comments explaining why the support is not
quite right.  (This change is quite a bit less invasive than a
"correct" fix, and thus more reasonable to pull up to netbsd-4.)

Rototill debugging, so that all DPRINTFN have a level, and so that the
message is printed if the debug level is >= the number in the source
code.  Document debug level plan.

Fix bug where only one status change would be printed (by inspection,
not tested).

Document scheme for reading/discarding data when ulpt(4) is opened for
write only.

Delete dead code.

Plan and patch posted on tech-kern without objections.
2008-01-08 00:58:09 +00:00
ad
c0187a5323 pmap_destroy: cast return of atomic_dec_uint_nv to (int) to avoid leaking
pmaps. The refcount can be zero due to pmap_remove_all. Problem found by
tnn@.
2008-01-08 00:45:23 +00:00