diff options
Diffstat (limited to 'arch/ppc64/kernel/traps.c')
-rw-r--r-- | arch/ppc64/kernel/traps.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/ppc64/kernel/traps.c b/arch/ppc64/kernel/traps.c index 10fc61f3f6a4..7e52cb2605e0 100644 --- a/arch/ppc64/kernel/traps.c +++ b/arch/ppc64/kernel/traps.c | |||
@@ -450,14 +450,12 @@ void kernel_fp_unavailable_exception(struct pt_regs *regs) | |||
450 | 450 | ||
451 | void altivec_unavailable_exception(struct pt_regs *regs) | 451 | void altivec_unavailable_exception(struct pt_regs *regs) |
452 | { | 452 | { |
453 | #ifndef CONFIG_ALTIVEC | ||
454 | if (user_mode(regs)) { | 453 | if (user_mode(regs)) { |
455 | /* A user program has executed an altivec instruction, | 454 | /* A user program has executed an altivec instruction, |
456 | but this kernel doesn't support altivec. */ | 455 | but this kernel doesn't support altivec. */ |
457 | _exception(SIGILL, regs, ILL_ILLOPC, regs->nip); | 456 | _exception(SIGILL, regs, ILL_ILLOPC, regs->nip); |
458 | return; | 457 | return; |
459 | } | 458 | } |
460 | #endif | ||
461 | printk(KERN_EMERG "Unrecoverable VMX/Altivec Unavailable Exception " | 459 | printk(KERN_EMERG "Unrecoverable VMX/Altivec Unavailable Exception " |
462 | "%lx at %lx\n", regs->trap, regs->nip); | 460 | "%lx at %lx\n", regs->trap, regs->nip); |
463 | die("Unrecoverable VMX/Altivec Unavailable Exception", regs, SIGABRT); | 461 | die("Unrecoverable VMX/Altivec Unavailable Exception", regs, SIGABRT); |