aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/traps.c
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@imgtec.com>2017-06-05 14:21:27 -0400
committerRalf Baechle <ralf@linux-mips.org>2017-08-29 09:21:51 -0400
commit3b2db173f01229410129f438d2f261c16a360eef (patch)
tree080f38e2506a8ff4a32a71b16ceaa3e135a10a72 /arch/mips/kernel/traps.c
parent114c370845111d4f2e31f9c6d4eedd9e4fc01f86 (diff)
MIPS: Remove unused R6000 support
The kernel contains a small amount of incomplete code aimed at supporting old R6000 CPUs. This is: - Unused, as no machine selects CONFIG_SYS_HAS_CPU_R6000. - Broken, since there are glaring errors such as r6000_fpu.S moving the FCSR register to t1, then ignoring it & instead saving t0 into struct sigcontext... - A maintenance headache, since it's code that nobody can test which nevertheless imposes constraints on code which it shares with other machines. Remove this incomplete & broken R6000 CPU support in order to clean up and in preparation for changes which will no longer need to consider dragging the pretense of R6000 support along with them. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/16236/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/traps.c')
-rw-r--r--arch/mips/kernel/traps.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index b68b4d0726d3..b52a785477f9 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -2428,21 +2428,6 @@ void __init trap_init(void)
2428 set_except_vector(EXCCODE_TR, handle_tr); 2428 set_except_vector(EXCCODE_TR, handle_tr);
2429 set_except_vector(EXCCODE_MSAFPE, handle_msa_fpe); 2429 set_except_vector(EXCCODE_MSAFPE, handle_msa_fpe);
2430 2430
2431 if (current_cpu_type() == CPU_R6000 ||
2432 current_cpu_type() == CPU_R6000A) {
2433 /*
2434 * The R6000 is the only R-series CPU that features a machine
2435 * check exception (similar to the R4000 cache error) and
2436 * unaligned ldc1/sdc1 exception. The handlers have not been
2437 * written yet. Well, anyway there is no R6000 machine on the
2438 * current list of targets for Linux/MIPS.
2439 * (Duh, crap, there is someone with a triple R6k machine)
2440 */
2441 //set_except_vector(14, handle_mc);
2442 //set_except_vector(15, handle_ndc);
2443 }
2444
2445
2446 if (board_nmi_handler_setup) 2431 if (board_nmi_handler_setup)
2447 board_nmi_handler_setup(); 2432 board_nmi_handler_setup();
2448 2433