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 KASSERT for KX in __mips_n32 as well.
details: https://anonhg.NetBSD.org/src/rev/e20a3fc878e0
branches: trunk
changeset: 346718:e20a3fc878e0
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Jul 30 05:58:15 2016 +0000
description:
KASSERT for KX in __mips_n32 as well.
diffstat:
sys/arch/mips/mips/vm_machdep.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 81efcf7e321a -r e20a3fc878e0 sys/arch/mips/mips/vm_machdep.c
--- a/sys/arch/mips/mips/vm_machdep.c Sat Jul 30 05:55:34 2016 +0000
+++ b/sys/arch/mips/mips/vm_machdep.c Sat Jul 30 05:58:15 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.147 2016/07/14 04:49:55 skrll Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.148 2016/07/30 05:58:15 skrll Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.147 2016/07/14 04:49:55 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.148 2016/07/30 05:58:15 skrll Exp $");
#include "opt_ddb.h"
#include "opt_coredump.h"
@@ -143,7 +143,7 @@
pcb2->pcb_context.val[_L_SP] = (intptr_t)tf; /* SP */
pcb2->pcb_context.val[_L_RA] =
mips_locore_jumpvec.ljv_lwp_trampoline; /* RA */
-#ifdef _LP64
+#if defined(_LP64) || defined(__mips_n32)
KASSERT(pcb2->pcb_context.val[_L_SR] & MIPS_SR_KX);
#endif
KASSERTMSG(pcb2->pcb_context.val[_L_SR] & MIPS_SR_INT_IE,
Home |
Main Index |
Thread Index |
Old Index