artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4706623
)
Properly restore FPSCR register.
author
kettenis
<kettenis@openbsd.org>
Wed, 14 Apr 2021 18:35:14 +0000
(18:35 +0000)
committer
kettenis
<kettenis@openbsd.org>
Wed, 14 Apr 2021 18:35:14 +0000
(18:35 +0000)
ok deraadt@
sys/arch/powerpc64/powerpc64/fpu.c
patch
|
blob
|
history
diff --git
a/sys/arch/powerpc64/powerpc64/fpu.c
b/sys/arch/powerpc64/powerpc64/fpu.c
index
07ac84f
..
e180691
100644
(file)
--- a/
sys/arch/powerpc64/powerpc64/fpu.c
+++ b/
sys/arch/powerpc64/powerpc64/fpu.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: fpu.c,v 1.
3 2021/01/09 13:14:02
kettenis Exp $ */
+/* $OpenBSD: fpu.c,v 1.
4 2021/04/14 18:35:14
kettenis Exp $ */
/*
* Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org>
@@
-76,7
+76,7
@@
restore_vsx(struct proc *p)
isync();
- __asm volatile ("lf
s
%%f0, 0(%0); mtfsf 0xff,%%f0"
+ __asm volatile ("lf
d
%%f0, 0(%0); mtfsf 0xff,%%f0"
:: "b"(&fp->fp_fpscr));
__asm volatile ("vxor %%v0, %%v0, %%v0; lvewx %%v0, 0, %0; mtvscr %%v0"
:: "b"(&fp->fp_vscr));