summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authorjhibbits <jhibbits@FreeBSD.org>2016-12-23 03:31:53 +0000
committerjhibbits <jhibbits@FreeBSD.org>2016-12-23 03:31:53 +0000
commit1446a9f8557d8eb3a775b16a19839c023fb3b14a (patch)
treef7c2a235f273ab7da203dd76de225c7395c42297 /sys/powerpc
parent5b9277e2522e830cafe25c28e4f0f03268d51c7e (diff)
downloadFreeBSD-src-1446a9f8557d8eb3a775b16a19839c023fb3b14a.zip
FreeBSD-src-1446a9f8557d8eb3a775b16a19839c023fb3b14a.tar.gz
MFC r307598:
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).
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 011b999..6d4e20c 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;
OpenPOWER on IntegriCloud