Commit Graph

4329 Commits

Author SHA1 Message Date
he
7a69db4aa6 Use firm_gettime() to retain compatibility with old firm_event. From amiga. 2009-01-17 14:35:06 +00:00
yamt
70de973662 g/c BUFQ_FOO() macros and use bufq_foo() directly. 2009-01-13 13:33:58 +00:00
tsutsui
69cf32a782 Replace time_t values in libsa sources with the following two types
to avoid unnecessary 64 bit ops which would make binaries larger:

satime_t (currently unsigned int):
 numbers in seconds returned by the machine dependent getsecs() function
 which are used to measure relative time

saseconds_t (currently int):
 numbers in seconds used to specify timeout to network drivers

Per discussion on current-users.
2009-01-12 11:32:43 +00:00
cegger
7bff66c0b7 use PRIu64 format to printf major() and minor() values 2009-01-12 08:12:46 +00:00
cegger
b4fe900840 adaption for making kgdb_dev a dev_t 2009-01-11 23:20:37 +00:00
nakayama
18a8b7fa58 Redo previous for 32-bit kernel. 2009-01-11 09:48:49 +00:00
nakayama
4a6cbc55ae p_timer has been changed to struct itimerspec. 2009-01-11 09:39:17 +00:00
christos
461a86f9bd merge christos-time_t 2009-01-11 02:45:45 +00:00
mrg
6bbe77565e add an empty module_init_md(), allows a MODULAR kernel to link. 2009-01-11 00:25:12 +00:00
macallan
02142ba757 convert to wscons, while there add some missing wsdisplay drivers 2008-12-22 23:47:16 +00:00
cegger
dcf705893e use M_ZERO on malloc() and remove subsequent bzero(). 2008-12-19 18:49:37 +00:00
cegger
9b87d582bd kill MALLOC and FREE macros. 2008-12-17 20:51:31 +00:00
cegger
f51c42b9f0 make this compile 2008-12-17 19:09:56 +00:00
christos
9a5d3f2817 replace bitmask_snprintf(9) with snprintb(3) 2008-12-16 22:35:21 +00:00
mrg
92a6d92cc8 merge these two files, makes sparc64 sparc/libc work again.
only provide __HAVE_LONG_DOUBLE if _LP64.
2008-12-15 00:25:05 +00:00
macallan
b71621c812 wscons here we come!
(finally)
2008-12-14 03:28:51 +00:00
macallan
25f1a62f67 some cleanup, add shadowfb support 2008-12-12 18:52:40 +00:00
macallan
2a1ee97a2a device_t-ify 2008-12-12 18:50:13 +00:00
pooka
ee352f3d33 Make kernel_pmap_ptr a const. Requested by steve_martin. 2008-12-10 11:10:17 +00:00
pooka
29d439f898 Make pmap_kernel() a MI macro for struct pmap *kernel_pmap_ptr,
which is now the "API" provided by the pmap module.  pmap_kernel()
remains as the syntactic sugar.

Bonus cosmetics round: move all the pmap_t pointer typedefs into
uvm_pmap.h.

Thanks to Greg Oster for providing cpu muscle for doing test builds.
2008-12-09 20:45:44 +00:00
martin
719a906ef5 As discussed on tech-kern: mutex_init is too heavyweight for early bootstrap
phases, so move the initialization of the ksyms mutex back into main via
a function called ksyms_init. Rename the existing (but quite different)
ksyms_init* variations into ksyms_addsyms_elf() and ksyms_addsyms_explicit()
and adapt machdep code accordingly.
2008-11-30 18:21:31 +00:00
he
5197a6eb44 Copy the sigdebug and sigpid declarations and associated defines
for the DEBUG define from machdep.c, so that this builds again.
2008-11-28 09:01:00 +00:00
ad
93ea4650a6 dumpsys: don't spew numbers into the log. 2008-11-25 15:51:34 +00:00
ad
6ba528b5bc Remove softdep, pass 1. We are focused on improving journalling.
Proposed on tech-kern@.
2008-11-24 11:41:07 +00:00
he
20bdc3eb41 If COMPAT_13 is defined, be sure to include compat signal
headers to get the native_sigset_to_sigset13() prototype and
related types in scope.
2008-11-22 15:34:18 +00:00
he
33a18bdcf6 Wrap opt* include in #ifdef _KERNEL_OPT. 2008-11-22 15:32:59 +00:00
ad
92ce8c6a3d Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime
2008-11-19 18:35:57 +00:00
martin
ae7357a3ad PR port-sparc/39942: ifdef ch0_is_cons declaration and all uses consistently 2008-11-17 18:32:08 +00:00
ad
0efea177e3 Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
2008-11-12 12:35:50 +00:00
dyoung
94d985722a It is not appropriate to call pmf_system_shutdown(9) from
doshutdownhooks(9): shutdown hooks registered by shutdownhook_establish(9)
expect to be called with interrupts disabled, but shutdown hooks
registered with pmf_device_register1(9) expect to be called with
interrupts enabled.  So I have made two changes:

1 Do not call pmf_system_shutdown() from doshutdownhooks().  Instead,
change every call to doshutdownhooks() to a call to doshutdownhooks()
followed by a call to pmf_system_shutdown().  No functional change
is intended by this change.

2 Make i386 re-enable interrupts briefly while it calls
pmf_system_shutdown().  I leave it to others either to fix the
other ports, or to factor out some MI shutdown code, as joerg@
suggests, and fix that.  Note that a functional change *is* intended
by this change.

I hope that this patch will stop us from flip-flopping between
calling doshutdownhooks() and pmf_system_shutdown() sometimes with
and sometimes without interrupts enabled.
2008-11-11 06:46:40 +00:00
mrg
cb1745c368 expose both sparc and sparc64 context bits. 2008-10-26 06:58:02 +00:00
apb
f46c1de7cb Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
mrg
6c952c0d18 move the float definitions all into <sparc/float.h> and make that
version work in either 32 or 64 bit mode.
2008-10-25 09:23:50 +00:00
mrg
4a4b68e004 include <sparc/pte.h> not <machine/pte.h> so this gets the right
version in 32 bit mode.
2008-10-25 09:23:11 +00:00
ad
d1b01a3709 Provide a small inline wrapper for sysent::sy_call() and use it to store
the active syscall description in struct lwp. To be used at some future
point to prevent unloading of modules that provide syscalls, while the
syscalls are in use.
2008-10-21 12:16:58 +00:00
apb
96230fab84 Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:19 +00:00
martin
553cb56cc1 Add misissing include and fix a few typos. 2008-10-16 19:38:36 +00:00
martin
6af33ffecb Resurrect cpu_setfunc(), adapted to new world order. 2008-10-16 19:28:52 +00:00
wrstuden
fc7511b00e Merge wrstuden-revivesa into HEAD. 2008-10-15 06:51:17 +00:00
tsutsui
1a0c6c8f90 Remove advertising clause for UCB in various genassym.cf files,
which were derived from genassym.c in 4.4BSD-Lite2 (or 386BSD).
Closes PR misc/39573.  Approved by martin@.
2008-09-20 18:29:04 +00:00
martin
6d59516d22 Deal with kernels that have a combined text/data segment. Output a big
warning when booting them.
2008-08-25 22:31:12 +00:00
martin
be5587ec7e Add missing va_end() calls, reported by Stepan "doomwarrior" on
port-sparc64.
2008-08-19 18:52:03 +00:00
tls
fca9d633b9 Add accept filters to GENERIC kernels where they exist. 2008-08-10 15:31:20 +00:00
skrll
3ceaf8f8e4 Make "show uvmhist" available to all arches (not just sparc*) in ddb. 2008-08-08 17:09:28 +00:00
matt
91d4704c12 Update <machine/ieeefp.h> to use the C99 FE_* definitions instead of the
NetBSD defined ones.  Redefine the NetBSD ones in terms of the C99 ones.
Step 1 to having <fenv.h>
2008-08-05 16:47:41 +00:00
macallan
d61452c45c fix another botched device_t-ification 2008-08-04 03:14:43 +00:00
simonb
0751ba4bff Add "options WAPBL" to standard GENERIC/INSTALL type configs. 2008-07-31 07:40:59 +00:00
cegger
2515b0ec09 make this compile 2008-07-17 14:43:38 +00:00
cegger
075c838a83 devive_private -> device_private 2008-07-17 14:39:26 +00:00
drochner
a3df0dfc03 split device/softc for scsibus 2008-07-16 18:50:58 +00:00