Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hp700/hp700 Initialise lwp0.l_cpu early so that spl...



details:   https://anonhg.NetBSD.org/src/rev/8b7522611008
branches:  trunk
changeset: 759436:8b7522611008
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Dec 09 10:19:23 2010 +0000

description:
Initialise lwp0.l_cpu early so that spl* work.

diffstat:

 sys/arch/hp700/hp700/machdep.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 6aa5f4718a27 -r 8b7522611008 sys/arch/hp700/hp700/machdep.c
--- a/sys/arch/hp700/hp700/machdep.c    Thu Dec 09 09:22:31 2010 +0000
+++ b/sys/arch/hp700/hp700/machdep.c    Thu Dec 09 10:19:23 2010 +0000
@@ -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)



Home | Main Index | Thread Index | Old Index