From 3eda297f44e8f8134cf1137f8038467756c00e7e Mon Sep 17 00:00:00 2001 From: martin Date: Tue, 14 Aug 2007 14:16:17 +0000 Subject: [PATCH] Complete initialization of lwp0 in pmap_bootstrap() --- sys/arch/sparc64/sparc64/pmap.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/arch/sparc64/sparc64/pmap.c b/sys/arch/sparc64/sparc64/pmap.c index 55d9a8b3305c..6556e81905a2 100644 --- a/sys/arch/sparc64/sparc64/pmap.c +++ b/sys/arch/sparc64/sparc64/pmap.c @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.190 2007/05/23 09:36:22 martin Exp $ */ +/* $NetBSD: pmap.c,v 1.191 2007/08/14 14:16:17 martin Exp $ */ /* * * Copyright (C) 1996-1999 Eduardo Horvath. @@ -26,7 +26,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.190 2007/05/23 09:36:22 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.191 2007/08/14 14:16:17 martin Exp $"); #undef NO_VCACHE /* Don't forget the locked TLB in dostart */ #define HWREF @@ -1101,6 +1101,10 @@ pmap_bootstrap(u_long kernelstart, u_long kernelend) cpus->ci_initstack = (void *)INITSTACK_VA; proc0paddr = cpus->ci_cpcb; + lwp0.l_addr = (struct user*)u0va; + lwp0.l_md.md_tf = (struct trapframe*)(u0va + USPACE + - sizeof(struct trapframe)); + cpu0paddr += 128 * KB; CPUSET_CLEAR(cpus_active);