projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5ca818
)
i386: convert hardware exception 13 to an interrupt gate
author
Alexander van Heukelum
<heukelum@fastmail.fm>
Tue, 9 Sep 2008 19:56:07 +0000
(21:56 +0200)
committer
Ingo Molnar
<mingo@elte.hu>
Mon, 13 Oct 2008 08:20:29 +0000
(10:20 +0200)
Handle general protection exception with interrupt initially off.
Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/traps_32.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/traps_32.c
b/arch/x86/kernel/traps_32.c
index 16c056ba14ee3047e9478c630b916e79aa68eb22..e2598505ef5cc2d4fc47b3b3884bb4da8faa366a 100644
(file)
--- a/
arch/x86/kernel/traps_32.c
+++ b/
arch/x86/kernel/traps_32.c
@@
-652,6
+652,8
@@
do_general_protection(struct pt_regs *regs, long error_code)
struct tss_struct *tss;
int cpu;
+ conditional_sti(regs);
+
cpu = get_cpu();
tss = &per_cpu(init_tss, cpu);
thread = ¤t->thread;
@@
-1273,7
+1275,7
@@
void __init trap_init(void)
set_intr_gate(10, &invalid_TSS);
set_intr_gate(11, &segment_not_present);
set_intr_gate(12, &stack_segment);
- set_
trap
_gate(13, &general_protection);
+ set_
intr
_gate(13, &general_protection);
set_intr_gate(14, &page_fault);
set_trap_gate(15, &spurious_interrupt_bug);
set_trap_gate(16, &coprocessor_error);