Module Name: src
Committed By: skrll
Date: Thu Dec 9 10:19:23 UTC 2010
Modified Files:
src/sys/arch/hp700/hp700: machdep.c
Log Message:
Initialise lwp0.l_cpu early so that spl* work.
To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 src/sys/arch/hp700/hp700/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/hp700/hp700/machdep.c
diff -u src/sys/arch/hp700/hp700/machdep.c:1.90 src/sys/arch/hp700/hp700/machdep.c:1.91
--- src/sys/arch/hp700/hp700/machdep.c:1.90 Mon Dec 6 18:42:09 2010
+++ src/sys/arch/hp700/hp700/machdep.c Thu Dec 9 10:19:23 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.90 2010/12/06 18:42:09 skrll Exp $ */
+/* $NetBSD: machdep.c,v 1.91 2010/12/09 10:19:23 skrll Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.90 2010/12/06 18:42:09 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.91 2010/12/09 10:19:23 skrll Exp $");
#include "opt_cputype.h"
#include "opt_ddb.h"
@@ -429,12 +429,13 @@
#ifdef KGDB
boothowto |= RB_KDB; /* go to kgdb early if compiled in. */
#endif
- /* Setup curlwp/curcpu early for LOCKDEBUG */
+ /* Setup curlwp/curcpu early for LOCKDEBUG and spl* */
#ifdef MULTIPROCESSOR
mtctl(&cpus[0], CR_CURCPU);
#else
mtctl(&lwp0, CR_CURLWP);
#endif
+ lwp0.l_cpu = &cpus[0];
/* Copy bootinfo */
if (bi != NULL)