summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2016-12-20 12:08:02 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2016-12-20 12:08:02 +0000
commit211a527032a3f36170290f19a0aa65b9d855bcee (patch)
treede4748d1cf12e6f9972a060733f04f8b7534eb6e /sys
parentf69933b0c7ac3b4ce38ebfbd868c73f953e44158 (diff)
fix an uninitialised variable on altivec assist trap
ok krw@ kettenis@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/powerpc/powerpc/trap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/powerpc/powerpc/trap.c b/sys/arch/powerpc/powerpc/trap.c
index 81dd1caa459..5974f88b802 100644
--- a/sys/arch/powerpc/powerpc/trap.c
+++ b/sys/arch/powerpc/powerpc/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.105 2015/07/29 18:52:44 miod Exp $ */
+/* $OpenBSD: trap.c,v 1.106 2016/12/20 12:08:01 jsg Exp $ */
/* $NetBSD: trap.c,v 1.3 1996/10/13 03:31:37 christos Exp $ */
/*
@@ -593,6 +593,7 @@ for (i = 0; i < errnum; i++) {
#endif
case EXC_VECAST|EXC_USER:
+ sv.sival_int = frame->srr0;
KERNEL_LOCK();
trapsignal(p, SIGFPE, 0, FPE_FLTRES, sv);
KERNEL_UNLOCK();