Module Name: src
Committed By: matt
Date: Wed Jan 26 08:51:13 UTC 2011
Modified Files:
src/sys/arch/powerpc/include [matt-nb5-pq3]: asm.h
Log Message:
Init CI_CURPCB too.
To generate a diff of this commit:
cvs rdiff -u -r1.26.26.2 -r1.26.26.3 src/sys/arch/powerpc/include/asm.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/powerpc/include/asm.h
diff -u src/sys/arch/powerpc/include/asm.h:1.26.26.2 src/sys/arch/powerpc/include/asm.h:1.26.26.3
--- src/sys/arch/powerpc/include/asm.h:1.26.26.2 Tue Jan 11 07:10:15 2011
+++ src/sys/arch/powerpc/include/asm.h Wed Jan 26 08:51:12 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: asm.h,v 1.26.26.2 2011/01/11 07:10:15 matt Exp $ */
+/* $NetBSD: asm.h,v 1.26.26.3 2011/01/26 08:51:12 matt Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -182,11 +182,11 @@
li tmp2,-1; \
stint tmp2,CI_IDEPTH(tmp1); \
li tmp2,0; \
- stptr tmp2,-CALLFRAMELEN(er); /* terminate idle stack chain */\
+ stptr er,CI_CURPCB(tmp1); \
lis tmp1,_C_LABEL(proc0paddr)@ha; \
stptr er,_C_LABEL(proc0paddr)@l(tmp1); \
- addi er,er,USPACE; /* stackpointer for proc0 */ \
- addi sp,er,-FRAMELEN; /* stackpointer for proc0 */ \
+ addi er,er,USPACE; /* stackpointer for lwp0 */ \
+ addi sp,er,-(FRAMELEN+CALLFRAMELEN); /* sp for lwp0 */ \
/* er = end of mem reserved for kernel */ \
stptru tmp2,-CALLFRAMELEN(sp) /* end of stack chain */