diff options
author | Akira Takeuchi <takeuchi.akr@jp.panasonic.com> | 2010-10-27 12:28:52 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2010-10-27 12:28:52 -0400 |
commit | 278d91c4609d55202c1e63d5fc5f01466cc7bbab (patch) | |
tree | 8b0c863837508959430c1741e2e5a2d37d2890d4 /arch/mn10300/kernel/traps.c | |
parent | 965ea4bbb9ae926358273368144ba838c561bc38 (diff) |
MN10300: Make the FPU operate in non-lazy mode under SMP
Make the FPU operate in non-lazy mode under SMP so that when the process that
is currently using the FPU migrates to a different CPU, we don't have to ping
its previous CPU to flush the FPU context.
Signed-off-by: Akira Takeuchi <takeuchi.akr@jp.panasonic.com>
Signed-off-by: Kiyoshi Owada <owada.kiyoshi@jp.panasonic.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'arch/mn10300/kernel/traps.c')
-rw-r--r-- | arch/mn10300/kernel/traps.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/mn10300/kernel/traps.c b/arch/mn10300/kernel/traps.c index c7257a1304a9..716a221df2f9 100644 --- a/arch/mn10300/kernel/traps.c +++ b/arch/mn10300/kernel/traps.c | |||
@@ -101,7 +101,6 @@ DO_EINFO(SIGILL, {}, "invalid opcode", invalid_op, ILL_ILLOPC); | |||
101 | DO_EINFO(SIGILL, {}, "invalid ex opcode", invalid_exop, ILL_ILLOPC); | 101 | DO_EINFO(SIGILL, {}, "invalid ex opcode", invalid_exop, ILL_ILLOPC); |
102 | DO_EINFO(SIGBUS, {}, "invalid address", mem_error, BUS_ADRERR); | 102 | DO_EINFO(SIGBUS, {}, "invalid address", mem_error, BUS_ADRERR); |
103 | DO_EINFO(SIGBUS, {}, "bus error", bus_error, BUS_ADRERR); | 103 | DO_EINFO(SIGBUS, {}, "bus error", bus_error, BUS_ADRERR); |
104 | DO_EINFO(SIGILL, {}, "FPU invalid opcode", fpu_invalid_op, ILL_COPROC); | ||
105 | 104 | ||
106 | DO_ERROR(SIGTRAP, | 105 | DO_ERROR(SIGTRAP, |
107 | #ifndef CONFIG_MN10300_USING_JTAG | 106 | #ifndef CONFIG_MN10300_USING_JTAG |
@@ -561,7 +560,6 @@ void __init trap_init(void) | |||
561 | set_excp_vector(EXCEP_PRIVINSACC, insn_acc_error); | 560 | set_excp_vector(EXCEP_PRIVINSACC, insn_acc_error); |
562 | set_excp_vector(EXCEP_PRIVDATACC, data_acc_error); | 561 | set_excp_vector(EXCEP_PRIVDATACC, data_acc_error); |
563 | set_excp_vector(EXCEP_DATINSACC, insn_acc_error); | 562 | set_excp_vector(EXCEP_DATINSACC, insn_acc_error); |
564 | set_excp_vector(EXCEP_FPU_DISABLED, fpu_disabled); | ||
565 | set_excp_vector(EXCEP_FPU_UNIMPINS, fpu_invalid_op); | 563 | set_excp_vector(EXCEP_FPU_UNIMPINS, fpu_invalid_op); |
566 | set_excp_vector(EXCEP_FPU_OPERATION, fpu_exception); | 564 | set_excp_vector(EXCEP_FPU_OPERATION, fpu_exception); |
567 | 565 | ||