Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips Remove now duplicate code for enabling FP...
details: https://anonhg.NetBSD.org/src/rev/8027a030b3fc
branches: trunk
changeset: 321249:8027a030b3fc
user: maya <maya%NetBSD.org@localhost>
date: Wed Mar 07 20:48:00 2018 +0000
description:
Remove now duplicate code for enabling FPU before reading FPU_ID
diffstat:
sys/arch/mips/mips/locore.S | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
diffs (33 lines):
diff -r 48bbd94389b0 -r 8027a030b3fc sys/arch/mips/mips/locore.S
--- a/sys/arch/mips/mips/locore.S Wed Mar 07 20:46:05 2018 +0000
+++ b/sys/arch/mips/mips/locore.S Wed Mar 07 20:48:00 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.216 2018/03/07 20:46:05 maya Exp $ */
+/* $NetBSD: locore.S,v 1.217 2018/03/07 20:48:00 maya Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -63,7 +63,7 @@
#include <mips/trap.h>
#include <mips/locore.h>
-RCSID("$NetBSD: locore.S,v 1.216 2018/03/07 20:46:05 maya Exp $")
+RCSID("$NetBSD: locore.S,v 1.217 2018/03/07 20:48:00 maya Exp $")
#include "assym.h"
@@ -142,14 +142,6 @@
PTR_LA gp, _C_LABEL(_gp)
#endif
-#ifdef NOFPU /* No FPU; avoid touching FPU registers */
-#else /* NOFPU */
- mfc0 t0, MIPS_COP_0_STATUS
- MFC0_HAZARD
- or t0, MIPS_SR_COP_1_BIT # Disable interrupts, and
- mtc0 t0, MIPS_COP_0_STATUS # enable the fp coprocessor
- COP0_HAZARD_FPUENABLE
-#endif
mfc0 t0, MIPS_COP_0_PRID # read product revision ID
COP0_SYNC
nop
Home |
Main Index |
Thread Index |
Old Index