Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/powerpc ofwr_init(): don't clobber r7 -- ea...
details: https://anonhg.NetBSD.org/src/rev/6c841bed2034
branches: trunk
changeset: 516412:6c841bed2034
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Oct 23 02:59:09 2001 +0000
description:
ofwr_init(): don't clobber r7 -- early startup code needs it to find
DDB symbols.
diffstat:
sys/arch/powerpc/powerpc/ofwreal.S | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r c7c22f4f84b0 -r 6c841bed2034 sys/arch/powerpc/powerpc/ofwreal.S
--- a/sys/arch/powerpc/powerpc/ofwreal.S Tue Oct 23 02:10:23 2001 +0000
+++ b/sys/arch/powerpc/powerpc/ofwreal.S Tue Oct 23 02:59:09 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ofwreal.S,v 1.2 1997/04/16 22:43:46 thorpej Exp $ */
+/* $NetBSD: ofwreal.S,v 1.3 2001/10/23 02:59:09 thorpej Exp $ */
/*
* Copyright (C) 1996 Wolfgang Solfrank.
@@ -71,7 +71,8 @@
ENTRY(ofwr_init)
mflr 31 /* save return address */
- mr 13,6 /* save args (only pointer used) */
+ mr 13,6 /* save args */
+ mr 12,7 /* save argslen */
lis 8,ofentry@ha
stw 5,ofentry@l(8) /* save virtual mode firmware entry */
@@ -84,6 +85,7 @@
addi 5,5,fwentry@l
mr 6,13 /* restore args pointer */
+ mr 7,12 /* restore args length */
mtlr 31 /* restore return address */
blr
Home |
Main Index |
Thread Index |
Old Index