From 331b3c24e3393c606624897302fe66ad3dbbdb9d Mon Sep 17 00:00:00 2001 From: Juli Mallett Date: Sat, 2 Oct 2010 01:29:09 +0000 Subject: [PATCH] Use ABI-aware macros for setting up a fake frame. --- sys/mips/mips/locore.S | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/mips/mips/locore.S b/sys/mips/mips/locore.S index e45e2398b3cd..9f685ebfee4c 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)