aboutsummaryrefslogtreecommitdiff
path: root/sys/powerpc
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2016-10-19 02:23:29 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2016-10-19 02:23:29 +0000
commitd25733dcb0afb8bcdf4cb834858c919028bd76d0 (patch)
tree8f2bc24de522cb05b849665e08ba218186386526 /sys/powerpc
parent3ab1c20e5b0d871394539b4464da7ee88bf73dbf (diff)
downloadsrc-d25733dcb0afb8bcdf4cb834858c919028bd76d0.tar.gz
src-d25733dcb0afb8bcdf4cb834858c919028bd76d0.zip
Un-static two local variables in the FPU emulator
Static variables aren't MP-safe, and this was causing bizarre segfaults on a dual-core e500v2 system (P1022). Still left is one static variable, which should be moved into the pcb instead, but as illegal instructions haven't been hit yet, it's lower priority. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=307598
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/fpu/fpu_emu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/powerpc/fpu/fpu_emu.c b/sys/powerpc/fpu/fpu_emu.c
index 011b9999db99..6d4e20cd7a82 100644
--- a/sys/powerpc/fpu/fpu_emu.c
+++ b/sys/powerpc/fpu/fpu_emu.c
@@ -185,8 +185,8 @@ fpu_dumpfpn(struct fpn *fp)
int
fpu_emulate(struct trapframe *frame, struct fpu *fpf)
{
- static union instr insn;
- static struct fpemu fe;
+ union instr insn;
+ struct fpemu fe;
static int lastill = 0;
int sig;