Commit:     e0a3647fd7729bee1ed9667ce5d8eb88f0604138
Parent:     06f862c8ce0893b5525ce90f39168eaf4608ecc6
Author:     Paul Mundt <[EMAIL PROTECTED]>
AuthorDate: Wed Aug 1 16:55:07 2007 +0900
Committer:  Paul Mundt <[EMAIL PROTECTED]>
CommitDate: Wed Aug 1 16:55:07 2007 +0900

    sh: Fix SH-X3 FPU exception handling.
    SH-X3 has the FPU exceptions on different vectors completely,
    patch in do_fpu_state_restore() to the proper vectors.
    Results in a much happier userspace.
    Signed-off-by: Paul Mundt <[EMAIL PROTECTED]>
 arch/sh/kernel/traps.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/arch/sh/kernel/traps.c b/arch/sh/kernel/traps.c
index 502d43e..6701504 100644
--- a/arch/sh/kernel/traps.c
+++ b/arch/sh/kernel/traps.c
@@ -854,9 +854,14 @@ void __init trap_init(void)
        set_exception_table_evt(0x800, do_reserved_inst);
        set_exception_table_evt(0x820, do_illegal_slot_inst);
 #elif defined(CONFIG_SH_FPU)
+       set_exception_table_evt(0xd80, do_fpu_state_restore);
+       set_exception_table_evt(0xda0, do_fpu_state_restore);
        set_exception_table_evt(0x800, do_fpu_state_restore);
        set_exception_table_evt(0x820, do_fpu_state_restore);
 #ifdef CONFIG_CPU_SH2
        set_exception_table_vec(TRAP_ADDRESS_ERROR, address_error_handler);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to