diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/include/asm/irq_vectors.h | 1 | ||||
-rw-r--r-- | arch/x86/kernel/irqinit.c | 6 | ||||
-rw-r--r-- | arch/x86/kernel/traps.c | 5 |
3 files changed, 2 insertions, 10 deletions
diff --git a/arch/x86/include/asm/irq_vectors.h b/arch/x86/include/asm/irq_vectors.h index 3cbd79bbb47c..910b5a3d6751 100644 --- a/arch/x86/include/asm/irq_vectors.h +++ b/arch/x86/include/asm/irq_vectors.h | |||
@@ -34,6 +34,7 @@ | |||
34 | 34 | ||
35 | #ifdef CONFIG_X86_32 | 35 | #ifdef CONFIG_X86_32 |
36 | # define SYSCALL_VECTOR 0x80 | 36 | # define SYSCALL_VECTOR 0x80 |
37 | # define IA32_SYSCALL_VECTOR 0x80 | ||
37 | #else | 38 | #else |
38 | # define IA32_SYSCALL_VECTOR 0x80 | 39 | # define IA32_SYSCALL_VECTOR 0x80 |
39 | #endif | 40 | #endif |
diff --git a/arch/x86/kernel/irqinit.c b/arch/x86/kernel/irqinit.c index f3be5e974275..f2c60a59f474 100644 --- a/arch/x86/kernel/irqinit.c +++ b/arch/x86/kernel/irqinit.c | |||
@@ -242,15 +242,9 @@ void __init native_init_IRQ(void) | |||
242 | * 'special' SMP interrupts) | 242 | * 'special' SMP interrupts) |
243 | */ | 243 | */ |
244 | for (i = FIRST_EXTERNAL_VECTOR; i < NR_VECTORS; i++) { | 244 | for (i = FIRST_EXTERNAL_VECTOR; i < NR_VECTORS; i++) { |
245 | #ifdef CONFIG_X86_32 | ||
246 | /* SYSCALL_VECTOR was reserved in trap_init. */ | ||
247 | if (i != SYSCALL_VECTOR) | ||
248 | set_intr_gate(i, interrupt[i-FIRST_EXTERNAL_VECTOR]); | ||
249 | #else | ||
250 | /* IA32_SYSCALL_VECTOR was reserved in trap_init. */ | 245 | /* IA32_SYSCALL_VECTOR was reserved in trap_init. */ |
251 | if (i != IA32_SYSCALL_VECTOR) | 246 | if (i != IA32_SYSCALL_VECTOR) |
252 | set_intr_gate(i, interrupt[i-FIRST_EXTERNAL_VECTOR]); | 247 | set_intr_gate(i, interrupt[i-FIRST_EXTERNAL_VECTOR]); |
253 | #endif | ||
254 | } | 248 | } |
255 | 249 | ||
256 | apic_intr_init(); | 250 | apic_intr_init(); |
diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c index a1d288327ff0..2310700faca5 100644 --- a/arch/x86/kernel/traps.c +++ b/arch/x86/kernel/traps.c | |||
@@ -969,11 +969,8 @@ void __init trap_init(void) | |||
969 | for (i = 0; i < FIRST_EXTERNAL_VECTOR; i++) | 969 | for (i = 0; i < FIRST_EXTERNAL_VECTOR; i++) |
970 | set_bit(i, used_vectors); | 970 | set_bit(i, used_vectors); |
971 | 971 | ||
972 | #ifdef CONFIG_X86_64 | ||
973 | set_bit(IA32_SYSCALL_VECTOR, used_vectors); | 972 | set_bit(IA32_SYSCALL_VECTOR, used_vectors); |
974 | #else | 973 | |
975 | set_bit(SYSCALL_VECTOR, used_vectors); | ||
976 | #endif | ||
977 | /* | 974 | /* |
978 | * Should be a barrier for any external CPU state: | 975 | * Should be a barrier for any external CPU state: |
979 | */ | 976 | */ |