traps: x86: converge trap_init functions
authorAlexander van Heukelum <heukelum@fastmail.fm>
Fri, 3 Oct 2008 20:00:32 +0000 (22:00 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 13 Oct 2008 08:33:22 +0000 (10:33 +0200)
commit699d2937d45d9dabc1772d0d07501ccc43885c23
tree56bc2da85a2a0737d86df18a5c1e02d646df37e1
parent3d2a71a596bd9c761c8487a2178e95f8a61da083
traps: x86: converge trap_init functions

- set_system_gate on i386 is really set_system_trap_gate
 - set_system_gate on x86_64 is really set_system_intr_gate
 - ist=0 means no special stack switch is done:
- introduce STACKFAULT_STACK, DOUBLEFAULT_STACK, NMI_STACK,
DEBUG_STACK and MCE_STACK as on x86_64.
- use the _ist variants with XXX_STACK set to zero
 - remove set_system_gate

Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
traps: x86: correct copy/paste bug: a trap is a GATE_TRAP

Fix copy/paste/forgot-to-edit bug in desc.h.

Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/traps_32.c
arch/x86/kernel/traps_64.c
include/asm-x86/desc.h
include/asm-x86/page_32.h