Module Name: src Committed By: matt Date: Sun Jan 23 15:51:07 UTC 2011
Modified Files: src/sys/arch/powerpc/include: asm.h Log Message: Some ports use %r0 as tmp2 to INIT_CPUINFO which has adverse effects so never use tmp2 to hold an address. To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 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.34 src/sys/arch/powerpc/include/asm.h:1.35 --- src/sys/arch/powerpc/include/asm.h:1.34 Tue Jan 18 01:02:54 2011 +++ src/sys/arch/powerpc/include/asm.h Sun Jan 23 15:51:07 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: asm.h,v 1.34 2011/01/18 01:02:54 matt Exp $ */ +/* $NetBSD: asm.h,v 1.35 2011/01/23 15:51:07 matt Exp $ */ /* * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -211,12 +211,12 @@ li tmp2,-1; \ stint tmp2,CI_IDEPTH(tmp1); \ li tmp2,0; \ - lis tmp2,_C_LABEL(lwp0)@h; \ - ori tmp2,tmp2,_C_LABEL(lwp0)@l; \ - stptr er,L_PCB(tmp2); /* XXXuvm_lwp_getuarea */ \ + lis tmp1,_C_LABEL(lwp0)@h; \ + ori tmp1,tmp1,_C_LABEL(lwp0)@l; \ + stptr er,L_PCB(tmp1); /* XXXuvm_lwp_getuarea */ \ addi er,er,USPACE; /* stackpointer for lwp0 */ \ addi sp,er,-FRAMELEN-CALLFRAMELEN; /* stackpointer for lwp0 */ \ - stptr sp,L_MD_UTF(tmp2); /* save in lwp0.l_md.md_utf */ \ + stptr sp,L_MD_UTF(tmp1); /* save in lwp0.l_md.md_utf */ \ /* er = end of mem reserved for kernel */ \ li tmp2,0; \ stptr tmp2,-CALLFRAMELEN(er); /* end of stack chain */ \