Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/mips Use proper CALLFRAME_FRAME and CALLFRAME_...



details:   https://anonhg.NetBSD.org/src/rev/f923aae7d889
branches:  trunk
changeset: 762729:f923aae7d889
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Feb 26 15:01:31 2011 +0000

description:
Use proper CALLFRAME_FRAME and CALLFRAME_CAUSE macro.

XXX: is it safe to use (CALLFRAME_SIZ + 3*SZREG(sp)) to save FSR?

diffstat:

 sys/arch/mips/mips/fp.S |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r dfdbff1de45a -r f923aae7d889 sys/arch/mips/mips/fp.S
--- a/sys/arch/mips/mips/fp.S   Sat Feb 26 14:43:18 2011 +0000
+++ b/sys/arch/mips/mips/fp.S   Sat Feb 26 15:01:31 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fp.S,v 1.41 2011/02/26 12:02:01 tsutsui Exp $  */
+/*     $NetBSD: fp.S,v 1.42 2011/02/26 15:01:31 tsutsui Exp $  */
 
 /*
  * Copyright (c) 1992, 1993
@@ -2833,8 +2833,8 @@
        #nop
        INT_S   a2, PCB_FPREGS+FRAME_FSR(v0)
 #endif
-       REG_L   a1, CALLFRAME_SIZ + 1*SZREG(sp) # frame
-       REG_L   a2, CALLFRAME_SIZ + 2*SZREG(sp) # cause
+       REG_L   a1, CALLFRAME_FRAME(sp)         # frame
+       REG_L   a2, CALLFRAME_CAUSE(sp)         # cause
        REG_L   ra, CALLFRAME_RA(sp)
        PTR_ADDU sp, CALLFRAME_SIZ
        j       _C_LABEL(fpemul_sigfpe)



Home | Main Index | Thread Index | Old Index