Sat Jan 3 18:15:11 2009 UTC ()
Initialise cpu_info_store so that we start up with a valid curlwp.


(bjh21)
diff -r1.24 -r1.25 src/sys/arch/acorn26/acorn26/machdep.c

cvs diff -r1.24 -r1.25 src/sys/arch/acorn26/acorn26/Attic/machdep.c (expand / switch to context diff)
--- src/sys/arch/acorn26/acorn26/Attic/machdep.c 2008/11/11 06:46:40 1.24
+++ src/sys/arch/acorn26/acorn26/Attic/machdep.c 2009/01/03 18:15:11 1.25
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.24 2008/11/11 06:46:40 dyoung Exp $ */
+/* $NetBSD: machdep.c,v 1.25 2009/01/03 18:15:11 bjh21 Exp $ */
 
 /*-
  * Copyright (c) 1998 Ben Harris
@@ -32,7 +32,7 @@
 
 #include <sys/param.h>
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.24 2008/11/11 06:46:40 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.25 2009/01/03 18:15:11 bjh21 Exp $");
 
 #include <sys/buf.h>
 #include <sys/kernel.h>
@@ -58,7 +58,12 @@
 char cpu_model[] = "Archimedes";
 
 /* Our exported CPU info; we can have only one. */
-struct cpu_info cpu_info_store;
+struct cpu_info cpu_info_store = {
+	.ci_cpl = IPL_HIGH,
+#ifndef PROCESS_ID_IS_CURLWP
+	.ci_curlwp = &lwp0,
+#endif
+};
 
 /* For reading NVRAM during bootstrap. */
 i2c_tag_t acorn26_i2c_tag;