Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/include Some ports use %r0 as tmp2 to INIT_...
details: https://anonhg.NetBSD.org/src/rev/1a37d625216d
branches: trunk
changeset: 761313:1a37d625216d
user: matt <matt%NetBSD.org@localhost>
date: Sun Jan 23 15:51:07 2011 +0000
description:
Some ports use %r0 as tmp2 to INIT_CPUINFO which has adverse effects so
never use tmp2 to hold an address.
diffstat:
sys/arch/powerpc/include/asm.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (26 lines):
diff -r 80579de3cd26 -r 1a37d625216d sys/arch/powerpc/include/asm.h
--- a/sys/arch/powerpc/include/asm.h Sun Jan 23 14:08:53 2011 +0000
+++ b/sys/arch/powerpc/include/asm.h Sun Jan 23 15:51:07 2011 +0000
@@ -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 */ \
Home |
Main Index |
Thread Index |
Old Index