summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2017-09-16 05:04:35 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2017-09-16 05:04:35 +0000
commit03daef3d504bd3a41b800daf1d4e8be541681324 (patch)
tree7f32f3b4372dc1170e4f2fd85c065a5197f7097b
parent28934186950b2f55a492e9a372a2030e04c27ace (diff)
Make sure that `fsr' is always initialized. Non-DEBUG kernels
have not been affected. From miod@
-rw-r--r--sys/arch/mips64/mips64/fp_emulate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/mips64/mips64/fp_emulate.c b/sys/arch/mips64/mips64/fp_emulate.c
index 0c131afa365..8d1bc8eebfc 100644
--- a/sys/arch/mips64/mips64/fp_emulate.c
+++ b/sys/arch/mips64/mips64/fp_emulate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fp_emulate.c,v 1.18 2017/09/02 15:56:29 visa Exp $ */
+/* $OpenBSD: fp_emulate.c,v 1.19 2017/09/16 05:04:34 visa Exp $ */
/*
* Copyright (c) 2010 Miodrag Vallat.
@@ -178,6 +178,7 @@ MipsFPTrap(struct trapframe *tf)
*/
tf->sr |= SR_FR_32;
#endif
+ fsr = tf->fsr;
}
/*