Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nathanw_sa]: src/sys/arch/evbppc/walnut Make this compile again.
details: https://anonhg.NetBSD.org/src/rev/ba065279dc26
branches: nathanw_sa
changeset: 506605:ba065279dc26
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu Dec 19 18:29:59 2002 +0000
description:
Make this compile again.
diffstat:
sys/arch/evbppc/walnut/machdep.c | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
diffs (53 lines):
diff -r fc0e63985e75 -r ba065279dc26 sys/arch/evbppc/walnut/machdep.c
--- a/sys/arch/evbppc/walnut/machdep.c Thu Dec 19 18:29:39 2002 +0000
+++ b/sys/arch/evbppc/walnut/machdep.c Thu Dec 19 18:29:59 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.1.2.2 2002/12/11 06:29:28 thorpej Exp $ */
+/* $NetBSD: machdep.c,v 1.1.2.3 2002/12/19 18:29:59 thorpej Exp $ */
/*
* Copyright 2001, 2002 Wasabi Systems, Inc.
@@ -79,6 +79,7 @@
#include <sys/msgbuf.h>
#include <sys/proc.h>
#include <sys/reboot.h>
+#include <sys/sa.h>
#include <sys/syscallargs.h>
#include <sys/syslog.h>
#include <sys/systm.h>
@@ -175,6 +176,7 @@
#endif
int exc;
extern char _edata, _end;
+ struct cpu_info * const ci = &cpu_info_store;
/* Disable all external interrupts */
mtdcr(DCR_UIC0_ER, 0);
@@ -198,11 +200,14 @@
availmemr[0].start = startkernel;
availmemr[0].size = board_data.mem_size - availmemr[0].start;
- proc0.p_addr = proc0paddr;
- memset(proc0.p_addr, 0, sizeof *proc0.p_addr);
+ /*
+ * Initialize lwp0 and current pcb and pmap pointers.
+ */
+ lwp0.l_cpu = ci;
+ lwp0.l_addr = proc0paddr;
+ memset(lwp0.l_addr, 0, sizeof *lwp0.l_addr);
curpcb = &proc0paddr->u_pcb;
-
curpm = curpcb->pcb_pmreal = curpcb->pcb_pm = pmap_kernel();
/*
@@ -370,9 +375,6 @@
u_int sz, i, base, residual;
char pbuf[9];
- proc0.p_addr = proc0paddr;
- v = (caddr_t)proc0paddr + USPACE;
-
/*
* Initialize error message buffer (at end of core).
*/
Home |
Main Index |
Thread Index |
Old Index