Module Name:    src
Committed By:   matt
Date:           Mon Sep  7 23:01:43 UTC 2009

Modified Files:
        src/sys/arch/sbmips/sbmips [matt-nb5-mips64]: machdep.c

Log Message:
Make sure MIPS_SR_KX is set for _LP64 kernels.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.38.10.1 src/sys/arch/sbmips/sbmips/machdep.c

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/sbmips/sbmips/machdep.c
diff -u src/sys/arch/sbmips/sbmips/machdep.c:1.38 src/sys/arch/sbmips/sbmips/machdep.c:1.38.10.1
--- src/sys/arch/sbmips/sbmips/machdep.c:1.38	Wed Jul  2 17:28:56 2008
+++ src/sys/arch/sbmips/sbmips/machdep.c	Mon Sep  7 23:01:43 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.38 2008/07/02 17:28:56 ad Exp $ */
+/* $NetBSD: machdep.c,v 1.38.10.1 2009/09/07 23:01:43 matt Exp $ */
 
 /*
  * Copyright 2000, 2001
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.38 2008/07/02 17:28:56 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.38.10.1 2009/09/07 23:01:43 matt Exp $");
 
 #include "opt_ddb.h"
 #include "opt_execfmt.h"
@@ -322,7 +322,10 @@
 	p0 = (void *)pmap_steal_memory(USPACE, NULL, NULL);
 	lwp0.l_addr = proc0paddr = (struct user *)p0;
 	lwp0.l_md.md_regs = (struct frame *)((char *)p0 + USPACE) - 1;
-	proc0paddr->u_pcb.pcb_context[11] =
+	lwp0.l_addr->u_pcb.pcb_context.val[_L_SR] =
+#ifdef _LP64
+	    MIPS_SR_KX |
+#endif
 	    MIPS_INT_MASK | MIPS_SR_INT_IE; /* SR */
 
 	pmap_bootstrap();

Reply via email to