summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-07-13 09:45:52 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-07-13 09:45:52 +0000
commit9d2c877b284a095dcd7cd037d3313eb14c89a6ca (patch)
tree6bb5a122cc9c8026cd86e00e55cf7b9936c2414d
parent30a9e9f9156ebe106320e06b1c50230c987cdbdc (diff)
Do not trash r14 by mistake in __savectx.
-rw-r--r--sys/arch/m88k/m88k/process.S5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/m88k/m88k/process.S b/sys/arch/m88k/m88k/process.S
index 75368236e2e..31d0dc044e0 100644
--- a/sys/arch/m88k/m88k/process.S
+++ b/sys/arch/m88k/m88k/process.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: process.S,v 1.3 2004/06/26 20:44:37 miod Exp $ */
+/* $OpenBSD: process.S,v 1.4 2004/07/13 09:45:51 miod Exp $ */
/*
* Copyright (c) 1996 Nivas Madhur
* All rights reserved.
@@ -331,5 +331,6 @@ ASENTRY(__savectx)
fldcr r2, fcr62
fldcr r3, fcr63
st r2, r14, PCB_FCR62
+ st r3, r14, PCB_FCR63
jmp.n r1
- st r3, r14, PCB_FCR63
+ ld r14, r14, PCB_R14 /* preserve r14 */