|
@@ -900,14 +900,13 @@ void kernel_fp_unavailable_exception(struct pt_regs *regs)
|
|
|
|
|
|
void altivec_unavailable_exception(struct pt_regs *regs)
|
|
void altivec_unavailable_exception(struct pt_regs *regs)
|
|
{
|
|
{
|
|
-#if !defined(CONFIG_ALTIVEC)
|
|
|
|
if (user_mode(regs)) {
|
|
if (user_mode(regs)) {
|
|
/* A user program has executed an altivec instruction,
|
|
/* A user program has executed an altivec instruction,
|
|
but this kernel doesn't support altivec. */
|
|
but this kernel doesn't support altivec. */
|
|
_exception(SIGILL, regs, ILL_ILLOPC, regs->nip);
|
|
_exception(SIGILL, regs, ILL_ILLOPC, regs->nip);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
-#endif
|
|
|
|
|
|
+
|
|
printk(KERN_EMERG "Unrecoverable VMX/Altivec Unavailable Exception "
|
|
printk(KERN_EMERG "Unrecoverable VMX/Altivec Unavailable Exception "
|
|
"%lx at %lx\n", regs->trap, regs->nip);
|
|
"%lx at %lx\n", regs->trap, regs->nip);
|
|
die("Unrecoverable VMX/Altivec Unavailable Exception", regs, SIGABRT);
|
|
die("Unrecoverable VMX/Altivec Unavailable Exception", regs, SIGABRT);
|