From fada7a07d6e158e0078ec6d046a959514b6171ad Mon Sep 17 00:00:00 2001 From: bjh21 Date: Sat, 3 Jan 2009 18:15:11 +0000 Subject: [PATCH] Initialise cpu_info_store so that we start up with a valid curlwp. --- sys/arch/acorn26/acorn26/machdep.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sys/arch/acorn26/acorn26/machdep.c b/sys/arch/acorn26/acorn26/machdep.c index ab06a96a66ee..2c8a6c097e32 100644 --- a/sys/arch/acorn26/acorn26/machdep.c +++ b/sys/arch/acorn26/acorn26/machdep.c @@ -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 -__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 #include @@ -58,7 +58,12 @@ char machine_arch[] = MACHINE_ARCH; 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;