diff options
author | Jake Burkholder <jake@FreeBSD.org> | 2001-01-21 19:25:07 +0000 |
---|---|---|
committer | Jake Burkholder <jake@FreeBSD.org> | 2001-01-21 19:25:07 +0000 |
commit | a448b62ac998ab4ae5e85fc7235cbb5c5dbe60ef (patch) | |
tree | a8fab5ee465b0d67b785fe50774997a21db3fdd5 /sys/i386/i386/mp_machdep.c | |
parent | 96b15e09d91b60bbe41d2a3ff239e9a38022ab57 (diff) | |
download | src-a448b62ac998ab4ae5e85fc7235cbb5c5dbe60ef.tar.gz src-a448b62ac998ab4ae5e85fc7235cbb5c5dbe60ef.zip |
Make intr_nesting_level per-process, rather than per-cpu. Setup
interrupt threads to run with it always >= 1, so that malloc can
detect M_WAITOK from "interrupt" context. This is also necessary
in order to context switch from sched_ithd() directly.
Reviewed By: peter
Notes
Notes:
svn path=/head/; revision=71337
Diffstat (limited to 'sys/i386/i386/mp_machdep.c')
-rw-r--r-- | sys/i386/i386/mp_machdep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/i386/i386/mp_machdep.c b/sys/i386/i386/mp_machdep.c index bf560cd07efa..966d3f897d52 100644 --- a/sys/i386/i386/mp_machdep.c +++ b/sys/i386/i386/mp_machdep.c @@ -581,10 +581,12 @@ mp_enable(u_int boot_addr) /* install an inter-CPU IPI for forcing an additional software trap */ setidt(XCPUAST_OFFSET, Xcpuast, SDT_SYS386IGT, SEL_KPL, GSEL(GCODE_SEL, SEL_KPL)); - + +#if 0 /* install an inter-CPU IPI for interrupt forwarding */ setidt(XFORWARD_IRQ_OFFSET, Xforward_irq, SDT_SYS386IGT, SEL_KPL, GSEL(GCODE_SEL, SEL_KPL)); +#endif /* install an inter-CPU IPI for CPU stop/restart */ setidt(XCPUSTOP_OFFSET, Xcpustop, |