diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2021-04-14 18:35:15 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2021-04-14 18:35:15 +0000 |
commit | 1f41ccd1ee308ea96e9faa845239dca8545a0a93 (patch) | |
tree | eea4675d519e1787d9a8d7aa50065d5feb1aac77 /sys | |
parent | cfbf9936a9370c8ab5b6e78b9f5523cd9023e59c (diff) |
Properly restore FPSCR register.
ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/powerpc64/powerpc64/fpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/powerpc64/powerpc64/fpu.c b/sys/arch/powerpc64/powerpc64/fpu.c index 07ac84f77d0..e180691da91 100644 --- 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 ("lfs %%f0, 0(%0); mtfsf 0xff,%%f0" + __asm volatile ("lfd %%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)); |