svn commit: r310447 - stable/11/sys/powerpc/fpu
Justin Hibbits
jhibbits at FreeBSD.org
Fri Dec 23 03:31:55 UTC 2016
Author: jhibbits
Date: Fri Dec 23 03:31:53 2016
New Revision: 310447
URL: https://svnweb.freebsd.org/changeset/base/310447
Log:
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).
Modified:
stable/11/sys/powerpc/fpu/fpu_emu.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/powerpc/fpu/fpu_emu.c
==============================================================================
--- stable/11/sys/powerpc/fpu/fpu_emu.c Fri Dec 23 03:28:43 2016 (r310446)
+++ stable/11/sys/powerpc/fpu/fpu_emu.c Fri Dec 23 03:31:53 2016 (r310447)
@@ -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;
More information about the svn-src-stable
mailing list