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 Fix a errant sw (should be lw) that ovewr...



details:   https://anonhg.NetBSD.org/src/rev/af057cf5d3c3
branches:  trunk
changeset: 746726:af057cf5d3c3
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Aug 18 21:28:07 2009 +0000

description:
Fix a errant sw (should be lw) that ovewrites the saved [trap]frame
pointer with a possibly bogus value.

diffstat:

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

diffs (18 lines):

diff -r e66256a4b4a3 -r af057cf5d3c3 sys/arch/mips/mips/fp.S
--- a/sys/arch/mips/mips/fp.S   Tue Aug 18 20:47:18 2009 +0000
+++ b/sys/arch/mips/mips/fp.S   Tue Aug 18 21:28:07 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fp.S,v 1.33 2007/10/17 19:55:37 garbled Exp $  */
+/*     $NetBSD: fp.S,v 1.34 2009/08/18 21:28:07 matt Exp $     */
 
 /*
  * Copyright (c) 1992, 1993
@@ -647,7 +647,7 @@
 
 bcemul_branch:
        /* Fetch delay slot instruction */
-       sw      a1, CALLFRAME_SIZ + 4(sp)
+       lw      a1, CALLFRAME_SIZ + 4(sp)
        REG_PROLOGUE
        REG_L   a0, FRAME_EPC(a1)
        REG_EPILOGUE



Home | Main Index | Thread Index | Old Index