Initialise cpu_info_store so that we start up with a valid curlwp.
This commit is contained in:
parent
eedb495377
commit
fada7a07d6
@ -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 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;
|
||||
|
Loading…
Reference in New Issue
Block a user