Module Name:    src
Committed By:   maya
Date:           Wed Mar  7 20:43:54 UTC 2018

Modified Files:
        src/sys/arch/mips/mips: locore.S

Log Message:
Remove duplicate confused code for enabling 64bit addressing


To generate a diff of this commit:
cvs rdiff -u -r1.214 -r1.215 src/sys/arch/mips/mips/locore.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mips/mips/locore.S
diff -u src/sys/arch/mips/mips/locore.S:1.214 src/sys/arch/mips/mips/locore.S:1.215
--- src/sys/arch/mips/mips/locore.S:1.214	Wed Mar  7 15:56:33 2018
+++ src/sys/arch/mips/mips/locore.S	Wed Mar  7 20:43:53 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: locore.S,v 1.214 2018/03/07 15:56:33 maya Exp $	*/
+/*	$NetBSD: locore.S,v 1.215 2018/03/07 20:43:53 maya Exp $	*/
 
 /*
  * Copyright (c) 1992, 1993
@@ -63,7 +63,7 @@
 #include <mips/trap.h>
 #include <mips/locore.h>
 
-RCSID("$NetBSD: locore.S,v 1.214 2018/03/07 15:56:33 maya Exp $")
+RCSID("$NetBSD: locore.S,v 1.215 2018/03/07 20:43:53 maya Exp $")
 
 #include "assym.h"
 
@@ -143,23 +143,9 @@ _C_LABEL(kernel_text):
 #endif
 
 #ifdef NOFPU /* No FPU; avoid touching FPU registers */
-#if !defined(emips)   /*  XXX??? we have already disabled interrupts! */
-#ifdef __mips_n32
-	li	t0, MIPS_SR_KX			# turn on XKSEG and XKPHYS
-#elif defined(_LP64)
-	li	t0, MIPS_SR_KX | MIPS_SR_UX	# turn on XKSEG and XKPHYS
-#else
-	li	t0, 0				# Disable interrupts and
-#endif /* n32 */
-	mtc0	t0, MIPS_COP_0_STATUS		# the fp coprocessor
-	COP0_SYNC
-#endif /* !emips */
 #else /* NOFPU */
 	mfc0	t0, MIPS_COP_0_STATUS
 	MFC0_HAZARD
-#if defined(_LP64) || defined(__mips_n32)
-	or	t0, MIPS_SR_KX			# turn on XKSEG and XKPHYS
-#endif
 	or	t0, MIPS_SR_COP_1_BIT		# Disable interrupts, and
 	mtc0	t0, MIPS_COP_0_STATUS		# enable the fp coprocessor
 	COP0_HAZARD_FPUENABLE

Reply via email to