Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/arch/x86/x86 fixup! Zero the fpu registers on fpu_...



details:   https://anonhg.NetBSD.org/src-all/rev/36f32926d4a6
branches:  trunk
changeset: 934426:36f32926d4a6
user:      Taylor R Campbell <riastradh%NetBSD.org@localhost>
date:      Fri Jun 12 05:09:04 2020 +0000

description:
fixup! Zero the fpu registers on fpu_kern_leave.

Gotta align this!

diffstat:

 sys/arch/x86/x86/fpu.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 18430a139abd -r 36f32926d4a6 sys/arch/x86/x86/fpu.c
--- a/sys/arch/x86/x86/fpu.c    Fri Jun 12 04:35:16 2020 +0000
+++ b/sys/arch/x86/x86/fpu.c    Fri Jun 12 05:09:04 2020 +0000
@@ -435,7 +435,7 @@
 void
 fpu_kern_leave(void)
 {
-       union savefpu zero_fpu;
+       union savefpu zero_fpu __aligned(64);
        struct cpu_info *ci = curcpu();
        int s;
 



Home | Main Index | Thread Index | Old Index