summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2010-10-02 01:29:09 +0000
committerjmallett <jmallett@FreeBSD.org>2010-10-02 01:29:09 +0000
commit01aff53f57e09d7fd8e259076ced2e78885d4faa (patch)
tree8cb58704b3776f528ae09677104fb60bce47e8e3 /sys/mips
parent344c7b6d26f66e9a5cf334a890b5d4b6a58bef31 (diff)
downloadFreeBSD-src-01aff53f57e09d7fd8e259076ced2e78885d4faa.zip
FreeBSD-src-01aff53f57e09d7fd8e259076ced2e78885d4faa.tar.gz
Use ABI-aware macros for setting up a fake frame.
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/mips/locore.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/mips/mips/locore.S b/sys/mips/mips/locore.S
index e45e239..9f685eb 100644
--- a/sys/mips/mips/locore.S
+++ b/sys/mips/mips/locore.S
@@ -161,11 +161,11 @@ VECTOR(_locore, unknown)
/*
* Initialize stack and call machine startup.
*/
- PTR_LA sp, _C_LABEL(pcpu_space)
- addiu sp, (PAGE_SIZE * 2) - CALLFRAME_SIZ
+ PTR_LA sp, _C_LABEL(pcpu_space)
+ PTR_ADDU sp, (PAGE_SIZE * 2) - CALLFRAME_SIZ
- sw zero, CALLFRAME_SIZ - 4(sp) # Zero out old ra for debugger
- sw zero, CALLFRAME_SIZ - 8(sp) # Zero out old fp for debugger
+ REG_S zero, CALLFRAME_RA(sp) # Zero out old ra for debugger
+ REG_S zero, CALLFRAME_SP(sp) # Zero out old fp for debugger
PTR_LA gp, _C_LABEL(_gp)
OpenPOWER on IntegriCloud