diff options
author | Alexander van Heukelum <heukelum@fastmail.fm> | 2008-09-09 15:56:11 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-13 04:20:38 -0400 |
commit | eb642f62082348c33ead53f736a9698953aa517d (patch) | |
tree | 6f894fb99e28e6a3f4d3c59ee9e11cb2f4550a2b /arch/x86/kernel/traps_32.c | |
parent | 5feedfd401c91e41bbe31ddec93cbe809dc98309 (diff) |
i386: convert hardware exception 18 to an interrupt gate
Handle machine check exception with interrupt initially off.
Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/traps_32.c')
-rw-r--r-- | arch/x86/kernel/traps_32.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/x86/kernel/traps_32.c b/arch/x86/kernel/traps_32.c index 86c808b4dafb..54b89f497bac 100644 --- a/arch/x86/kernel/traps_32.c +++ b/arch/x86/kernel/traps_32.c | |||
@@ -62,6 +62,7 @@ | |||
62 | #include <asm/traps.h> | 62 | #include <asm/traps.h> |
63 | 63 | ||
64 | #include "mach_traps.h" | 64 | #include "mach_traps.h" |
65 | #include "cpu/mcheck/mce.h" | ||
65 | 66 | ||
66 | DECLARE_BITMAP(used_vectors, NR_VECTORS); | 67 | DECLARE_BITMAP(used_vectors, NR_VECTORS); |
67 | EXPORT_SYMBOL_GPL(used_vectors); | 68 | EXPORT_SYMBOL_GPL(used_vectors); |
@@ -1252,6 +1253,14 @@ void __kprobes do_device_not_available(struct pt_regs *regs, long error) | |||
1252 | } | 1253 | } |
1253 | } | 1254 | } |
1254 | 1255 | ||
1256 | #ifdef CONFIG_X86_MCE | ||
1257 | void __kprobes do_machine_check(struct pt_regs *regs, long error) | ||
1258 | { | ||
1259 | conditional_sti(regs); | ||
1260 | machine_check_vector(regs, error); | ||
1261 | } | ||
1262 | #endif | ||
1263 | |||
1255 | void __init trap_init(void) | 1264 | void __init trap_init(void) |
1256 | { | 1265 | { |
1257 | int i; | 1266 | int i; |
@@ -1283,7 +1292,7 @@ void __init trap_init(void) | |||
1283 | set_intr_gate(16, &coprocessor_error); | 1292 | set_intr_gate(16, &coprocessor_error); |
1284 | set_intr_gate(17, &alignment_check); | 1293 | set_intr_gate(17, &alignment_check); |
1285 | #ifdef CONFIG_X86_MCE | 1294 | #ifdef CONFIG_X86_MCE |
1286 | set_trap_gate(18, &machine_check); | 1295 | set_intr_gate(18, &machine_check); |
1287 | #endif | 1296 | #endif |
1288 | set_trap_gate(19, &simd_coprocessor_error); | 1297 | set_trap_gate(19, &simd_coprocessor_error); |
1289 | 1298 | ||