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 register restore to be safe for n32 m...



details:   https://anonhg.NetBSD.org/src/rev/4b2b8f10528b
branches:  trunk
changeset: 473455:4b2b8f10528b
user:      castor <castor%NetBSD.org@localhost>
date:      Fri Jun 04 21:35:47 1999 +0000

description:
fix register restore to be safe for n32 model.

diffstat:

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

diffs (18 lines):

diff -r 283e17bbed2f -r 4b2b8f10528b sys/arch/mips/mips/locore.S
--- a/sys/arch/mips/mips/locore.S       Fri Jun 04 20:40:50 1999 +0000
+++ b/sys/arch/mips/mips/locore.S       Fri Jun 04 21:35:47 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.72 1999/05/18 01:36:52 nisimura Exp $     */
+/*     $NetBSD: locore.S,v 1.73 1999/06/04 21:35:47 castor Exp $       */
 
 /*
  * Copyright (c) 1992, 1993
@@ -363,7 +363,7 @@
        lw      v0, _C_LABEL(proc0paddr)        # get proc0 p_addr
        nop
        sw      v0, _C_LABEL(curpcb)            # set current pcb
-       lw      sp, U_PCB_CONTEXT+SF_REG_SP(v0) # restore stack pointer
+       REG_L   sp, U_PCB_CONTEXT+SF_REG_SP(v0) # restore stack pointer
        la      ra, sw1                         # rathole to cpu_switch()
        j       _C_LABEL(exit2)                 # proc already in a0
        sub     sp, sp, CALLFRAME_SIZ           #BDSlot: set stack call frame



Home | Main Index | Thread Index | Old Index