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 in switch_exit() previous fix forgot to g...
details: https://anonhg.NetBSD.org/src/rev/9852bb27e144
branches: trunk
changeset: 473456:9852bb27e144
user: castor <castor%NetBSD.org@localhost>
date: Fri Jun 04 21:43:12 1999 +0000
description:
in switch_exit() previous fix forgot to guard REG_L with REG_PROLOGUE and
REG_EPILOGUE.
diffstat:
sys/arch/mips/mips/locore.S | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 4b2b8f10528b -r 9852bb27e144 sys/arch/mips/mips/locore.S
--- a/sys/arch/mips/mips/locore.S Fri Jun 04 21:35:47 1999 +0000
+++ b/sys/arch/mips/mips/locore.S Fri Jun 04 21:43:12 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.73 1999/06/04 21:35:47 castor Exp $ */
+/* $NetBSD: locore.S,v 1.74 1999/06/04 21:43:12 castor Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -363,7 +363,9 @@
lw v0, _C_LABEL(proc0paddr) # get proc0 p_addr
nop
sw v0, _C_LABEL(curpcb) # set current pcb
+ REG_PROLOGUE
REG_L sp, U_PCB_CONTEXT+SF_REG_SP(v0) # restore stack pointer
+ REG_EPILOGUE
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