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 re-enable 64bit addressing in n32 kernels
details: https://anonhg.NetBSD.org/src/rev/21857131f019
branches: trunk
changeset: 433322:21857131f019
user: macallan <macallan%NetBSD.org@localhost>
date: Fri Sep 07 21:14:45 2018 +0000
description:
re-enable 64bit addressing in n32 kernels
Now these work again, at least on my Indy.
diffstat:
sys/arch/mips/mips/locore.S | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r 4a3da948d092 -r 21857131f019 sys/arch/mips/mips/locore.S
--- a/sys/arch/mips/mips/locore.S Fri Sep 07 20:44:04 2018 +0000
+++ b/sys/arch/mips/mips/locore.S Fri Sep 07 21:14:45 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.218 2018/03/28 17:56:52 maya Exp $ */
+/* $NetBSD: locore.S,v 1.219 2018/09/07 21:14:45 macallan Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -63,7 +63,7 @@
#include <mips/trap.h>
#include <mips/locore.h>
-RCSID("$NetBSD: locore.S,v 1.218 2018/03/28 17:56:52 maya Exp $")
+RCSID("$NetBSD: locore.S,v 1.219 2018/09/07 21:14:45 macallan Exp $")
#include "assym.h"
@@ -87,12 +87,17 @@
mtc0 k0, MIPS_COP_0_STATUS
COP0_SYNC
-#ifdef _LP64
+#if defined(_LP64)
/* Enable 64-bit addressing */
mfc0 k0, MIPS_COP_0_STATUS
MFC0_HAZARD
or k0, MIPS_SR_KX | MIPS_SR_UX
mtc0 k0, MIPS_COP_0_STATUS
+#elif defined(__mips_n32)
+ mfc0 k0, MIPS_COP_0_STATUS
+ MFC0_HAZARD
+ or k0, MIPS_SR_KX
+ mtc0 k0, MIPS_COP_0_STATUS
#endif
#ifdef HPCMIPS_L1CACHE_DISABLE
Home |
Main Index |
Thread Index |
Old Index