167416 Commits

Author SHA1 Message Date
xtraeme
51e43163c8 Add three new values for ENVSYS_DRIVE units:
* ENVSYS_DRIVE_OFFLINE, ENVSYS_DRIVE_CHECK and ENVSYS_DRIVE_BUILD
2008-02-28 16:21:34 +00:00
christos
908cf676a4 mention RANDOM_MAX 2008-02-28 16:16:35 +00:00
christos
c75e135b85 add RANDOM_MAX define from anon ymous 2008-02-28 16:13:35 +00:00
elad
67470a76a1 Factor out the guts of get/setparam so it can be used from the compat code.
Make the FreeBSD and Linux compat code convert the parameters to their
native representation and call the native routines.

Remove KAUTH_PROCESS_SCHEDULER_GET/SET.

Update documentation and examples.

XXX: For now, only the Linux compat code does the priority conversion
XXX: right.

Linux priority conversion code from yamt@, thanks!

Okay yamt@.
2008-02-28 16:09:18 +00:00
drochner
c0adcb9cf8 use pmf again to register the shutdown handler, instead of
shutdownhook_establish()
2008-02-28 14:40:17 +00:00
drochner
0e748e633e Extend the pmf suspend/resume hooks by a shutdown method, so drivers
can register a shutdown handler explicitely.
Install a pci bus shutdown handler which disables bus master accesses
for all childs, so the drivers don't need to care.
This will hopefully be sufficient to replace the shutdownhooks
(together with the powerhooks). (It has been suggested to use some
general event notification framework for shutdown handlers, but there
might be cases where shutdown handlers must be run in an order following
the device hierarchy, which wouldn't be easy with event handlers
not tied to drivers.)
approved by David Young
2008-02-28 14:25:12 +00:00
martin
a9e7d15afd Make TSBs and MMU contexts per-cpu. 2008-02-28 11:50:40 +00:00
tls
baa02d2a35 From Darran Hunt: you can't just specify the "wrong" underlying algorithm
with the "right" output size in the xform declaration and have the _96
HMAC variants work -- the actual algorithm machinery (hardware or software)
ignores the output-size parameter, it's just there to inform the interface
consumer.

This should fix FAST_IPSEC.
2008-02-28 09:29:10 +00:00
matt
49cf9ad72a constify dkdriver 2008-02-28 04:55:47 +00:00
macallan
d15719537b switch to PCI_MAGIC_IO_RANGE 2008-02-28 00:21:38 +00:00
dyoung
82d7506fef Use device_t and accessors. 2008-02-28 00:20:04 +00:00
macallan
12dbe7fb57 move PCI_MAGIC_IO_RANGE to a header that's actually exported to userland 2008-02-28 00:18:08 +00:00
macallan
ee03e6b4fb get rid of the last #ifdef macppc and use PCI_MAGIC_IO_RANGE to select
at which offset we mmap PCI IO space
2008-02-27 23:59:37 +00:00
macallan
3195ef8f6f add a #define to select at which offset display drivers' mmap() methods
return the resp. IO range so X can access stuff lie VGA registers
2008-02-27 23:56:58 +00:00
matt
1a5c171d25 Add the bus devclass to tc 2008-02-27 23:49:11 +00:00
dsl
f127a329db Sprinkle 'static' and 'EXIT_FAILURE'. Use getopt().
Simplify getprec() using libc functions.
Code from me partially inspired by a diff sent by xtos.
2008-02-27 22:47:32 +00:00
matt
0c07a5e990 Emit ANSI protype: fn (void) and not fn () 2008-02-27 22:38:57 +00:00
hubertf
5a67df07cd Fix comment: SA_RESTART only restarts the system call, not the whole system.
Noted by Jukka Salmi <j+nbsd@2008.salmi.ch> on tech-userlevel.
2008-02-27 22:18:41 +00:00
elad
8597bf513b Default defer, not deny.
Idea okay wrstuden@, no objections on tech-kern@ and tech-security@.
2008-02-27 21:59:26 +00:00
dsl
01709217fc Generate ANSI functions.
Just indent the code by a single tab - no need to compare against the
C program generated version any more.
2008-02-27 21:56:14 +00:00
dsl
b63023e666 Change spaces to tabs for consistency with adjacent lines. 2008-02-27 21:55:07 +00:00
xtraeme
4ac581c0f9 Add back the CPU_TMLR_* definitions for binary sysctl compatibility
with NetBSD pre-2.0, and use them in the longrun driver again.

Requested by cube@.
2008-02-27 20:18:56 +00:00
matt
9a1bbaab37 Convert to ansi definitions from old-style definitons. 2008-02-27 19:59:48 +00:00
matt
c8f6e9fb17 Allow PRIV_ALLOC devices to have no private data. 2008-02-27 19:59:05 +00:00
matt
5baf734b61 Convert to ansi definitions from old-style definitons.
Remember that func() is not ansi, func(void) is.
2008-02-27 19:57:32 +00:00
matt
6d6aefbf45 Convert to ansi definitions from old-style definitons. 2008-02-27 19:57:18 +00:00
matt
362b5ff0c5 make socketops const 2008-02-27 19:56:33 +00:00
matt
a918cf0e3a Convert stragglers to ansi definitions from old-style definitons.
Remember that func() is not ansi, func(void) is.
2008-02-27 19:55:59 +00:00
matt
58bb9f6508 Convert to ansi definitions from old-style definitons.
Remember that func() is not ansi, func(void) is.
2008-02-27 19:54:27 +00:00
matt
8014191a2e Convert to ansi definitions from old-style definitons. 2008-02-27 19:43:36 +00:00
matt
a4a1e5ce55 Convert stragglers to ansi definitions from old-style definitons.
Remember that func() is not ansi, func(void) is.
2008-02-27 19:41:51 +00:00
matt
c939552209 Convert to ansi definitions from old-style definitons.
Remember that func() is not ansi, func(void) is.
2008-02-27 19:40:56 +00:00
matt
41b4feae9a Convert two inlines from old-style-definitions to ansi. 2008-02-27 19:38:57 +00:00
reed
a87ec1e425 Remove the -v verbose switch from userinfo. It was not used.
Also remove reference to usermgmt.conf from userinfo manpage.

Discussed on tech-userlevel.
2008-02-27 19:12:56 +00:00
xtraeme
f402cadf9a Remove CTL_MACHDEP_NAMES, it's not used anywhere.
Ok by martin@.
2008-02-27 18:26:15 +00:00
drochner
ee2a294e04 Register a NULL pmf handler, so that the system can suspend.
This is OK because wscons detaches the X server before devices are
suspended, and the X server closes the drm device on detach.
(We could install a suspend handler which just double-checks, but
atm its return value is ignored anyway.)
2008-02-27 18:01:49 +00:00
xtraeme
e4a52ebb2b - Fixup the machdep.tm_longrun_* sysctl nodes creation.
- The CTL_TMLR_ static definitions for CTL_MACHDEP are not needed anymore.
2008-02-27 17:39:37 +00:00
ad
6ae89ed2af +cpu_lookup_byindex 2008-02-27 17:02:56 +00:00
ad
60df1d7038 The ISO stuff has never worked, remove it. 2008-02-27 16:39:17 +00:00
ad
f4b74daf98 +#define _KERNEL
+#include <sys/types.h>
+#undef _KERNEL
2008-02-27 16:37:31 +00:00
ad
835572acdb - Define _KERNEL for sys/types.h in unix.c.
- caddr_t -> char * in a couple of places.
2008-02-27 16:36:54 +00:00
ad
0565241b89 +#define _KERNEL
+#include <sys/types.h>
+#undef _KERNEL
2008-02-27 15:46:23 +00:00
joerg
8a4e45ea0e Add build glue for libarchive based cpio and tar. 2008-02-27 15:39:21 +00:00
ad
0fe23ea49b Assert uvm_fpageqlock is held in a few more places. 2008-02-27 14:24:24 +00:00
ad
185d25c158 Minor corrections to comments. 2008-02-27 14:23:33 +00:00
yamt
0a2b10db61 uao_put: fix a race with pageout. 2008-02-27 13:46:20 +00:00
tsutsui
b92bcf19a8 Fix warnings. 2008-02-27 13:08:52 +00:00
tsutsui
40009ad586 struct lpt_softc doesn't have sc_dev in it. Use ppbus_dev.sc_dev. 2008-02-27 12:52:36 +00:00
yamt
42020733fc yamt-lazymbuf: change the goal.
although i still want to unify buf and mbuf, it will be on another branch.
2008-02-27 09:27:23 +00:00
yamt
8cf209cf2b yamt-lazymbuf-base12 2008-02-27 09:07:41 +00:00