Commit Graph

1024 Commits

Author SHA1 Message Date
joerg
99bea28aa2 Fix typo in comment. 2009-01-15 19:03:31 +00:00
cegger
b4fe900840 adaption for making kgdb_dev a dev_t 2009-01-11 23:20:37 +00:00
cegger
08ebead94e make this compile 2009-01-11 09:51:38 +00:00
christos
461a86f9bd merge christos-time_t 2009-01-11 02:45:45 +00:00
pooka
0531e32a05 !defined(_LKM) -> defined(_KERNEL_OPT) 2008-12-30 13:15:49 +00:00
pooka
d218bdeeff _LKM -> _MODULE 2008-12-30 12:35:23 +00:00
ad
5e34fbf90e - Kill NOREDZONE.
- Make the redzone conditional on DIAGNOSTIC.
- Give amd64 an additional page for the uarea. 2 is not enough.
2008-12-20 12:41:19 +00:00
cegger
29ab14fbb0 malloc -> kmem 2008-12-18 15:42:33 +00:00
cegger
f3cd5e707d remove unused malloc.h 2008-12-18 11:45:40 +00:00
cegger
67adcc40e5 cleanup BIOS memmap code:
- get rid of some nested externs
- reduce dependency on global variables
- some preparations for upcoming pmem(9)
2008-12-15 22:20:52 +00:00
jmcneill
c2854ab43d add options PMS_ELANTECH_TOUCHPAD 2008-12-14 00:44:29 +00:00
pooka
29f99fff05 _VMPARAM_H_ -> _$MACHINE_VMPARAM_H_ 2008-12-13 14:07:10 +00:00
pooka
5e4ac10274 wrap in #ifdef __x86_64__ 2008-12-13 13:36:04 +00:00
alc
1c52cf4c6b Import config(9) file and register HAL's files in the build machinery. 2008-12-11 05:42:18 +00:00
alc
31f44cb2ed Clean-up makefile stub used to include in the build the binary HAL object 2008-12-11 05:27:42 +00:00
njoly
218ea1fa05 Add R_X86_64_32 relocation support, which enable loading modules with
debugging information. And ensure that addr is not null before using
it.

From ad@, thanks.
2008-12-08 08:41:36 +00:00
ad
0ff35ddc5a - Fix a bug in amd64 rw_tryenter() where it could return failure even after
acquiring a lock, if aligned on a 4GB boundary.

- Microoptimize more.
2008-12-05 13:08:11 +00:00
ad
7c08cd2bc7 Don't abort pageidlezero unless a realtime thread wants to run. 2008-12-03 12:04:59 +00:00
ad
bce9119307 Don't abort pageidlezero unless a realtime thread wants to run. 2008-12-03 11:40:17 +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
ad
bd14467c41 fpudna: enable interrupts in an error path. 2008-11-25 16:27:36 +00:00
ad
36ebc18492 trap07: do NOT enable interrupts before calling fpudna or we could be
preempted.
2008-11-25 16:25:29 +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
ad
91ca02fc89 PR port-amd64/39991 modules/compat_linux: build fix 2008-11-21 10:05:41 +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
bouyer
92e5f85303 Make sure xen_idt is writable before trying to write to it (issue previously
masked by defined(COMPAT_10) || defined(COMPAT_IBCS2)). Make amd64xen kernel
boot again.
2008-11-16 20:13:50 +00:00
ad
a44212844f Remove unneeded ifdefs. 2008-11-14 15:03:44 +00:00
cegger
b23cd354e0 merge BIOS memmap code from i386/i386/machdep.c:init386() and amd64/amd64/machdep.c:init_x86_64 into x86/x86/x86_machdep.c 2008-11-14 00:41:36 +00:00
ad
5b57d1bcce LKM -> MODULAR 2008-11-13 10:51:23 +00:00
cegger
cc63733c55 prepare move to new interface 2008-11-13 01:45:48 +00:00
ad
5c0480d3c9 Comment out P1003_1B_SEMAPHORE. The ksem module will now be autoloaded from
the file system if POSIX semaphores are used.
2008-11-12 14:36:31 +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
cegger
30fc40a83e reduce diff to i386/i386/machdep.c:init386()
- introduce add_mem_cluster() as done in i386
- apply rev. 1.480 from i386/i386/machdep.c: fixes PR 17199 for amd64
- apply rev. 1.492 from i386/i386/machdep.c: fixes PR 13399 for amd64
2008-11-12 01:33:44 +00:00
cegger
90fdd18b98 cosmetic change (mostly to reduce diff to i386/i386/machdep.c:initi386):
#if DEBUG_MEMLOAD -> #ifdef DEBUG_MEMLOAD
use PRIx64 rather %qx
No functional changes intended.
2008-11-12 01:17:16 +00:00
ad
c269b07b80 PR port-i386/39299 FPU use in signal handlers is unsafe 2008-11-11 15:53:53 +00:00
ad
4903bac4b2 PR port-amd64/38293 panic: fp_save ipi didn't
Fix race conditions in FPU IPI handling.
2008-11-11 14:40:18 +00:00
ad
70f38482aa PR port-amd64/38293 panic: fp_save ipi didn't
Kill the FP flush IPI and always save. The synchronization here isn't strong
and we could easily pull the chain on an innocent LWP's FP state.

Another fix to follow.
2008-11-11 13:45:10 +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
cegger
cf508a059b mainbus_attach: reduce diff a little between i386 and amd64 2008-11-10 14:36:59 +00:00
cegger
32c1f8c732 Nuke last parameter from mpaci_scan_apics() and mpbios_scan().
It is unused.
2008-11-09 14:24:14 +00:00
joerg
77a5d43962 New assym.h dependency. 2008-10-30 20:07:01 +00:00
mrg
60383d275a if HAVE_NBTOOL_CONFIG_H is defined, also use the contents of this
file, not <i386/disklabel.h>.

XXX: the way tools/disklabel builds is gross.
2008-10-28 02:19:27 +00:00
mrg
4adcca090c - install i386 includes on amd64
- sort
2008-10-26 02:14:59 +00:00
mrg
433b5dde02 put the contents of these header files around #ifdef __x86_64__, and
#include the <i386/foo.h> in the #else clause, making these files
largely bit-size independant.
2008-10-26 00:08:15 +00:00
apb
f46c1de7cb Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
cegger
2de31871b9 introduce two macros: xendomain_is_dom0() and xendomain_is_privileged(). Use them. 2008-10-21 15:46:32 +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
ad
a9327b33e2 Undo revivesa damage to userret(). 2008-10-21 11:51:23 +00:00
cegger
331c30d3a5 catch up with GENERIC
- add verbose options (commented out)
- add descriptive comments
- sort them alphabetically
2008-10-21 10:13:23 +00:00
joerg
2201ddb77c Add u3g entries in kernels that have ugensa as well. 2008-10-19 11:34:31 +00:00