Source-Changes-HG archive

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

[src/netbsd-9]: src/sys/arch/x86/x86 Pull up following revision(s) (requested...



details:   https://anonhg.NetBSD.org/src/rev/36bac6e1dccf
branches:  netbsd-9
changeset: 378184:36bac6e1dccf
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Jul 25 11:34:37 2023 +0000

description:
Pull up following revision(s) (requested by riastradh in ticket #1665):

        sys/arch/x86/x86/fpu.c: revision 1.86

x86/fpu: Align savefpu to 64 bytes in fpuinit_mxcsr_mask.
16 bytes is not enough.

(Is this why it never worked on Xen some years back?  Got lucky and
accidentally had 64-byte alignment on native x86, but not in the call
stack in Xen?)

diffstat:

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

diffs (27 lines):

diff -r 741c8ec7231a -r 36bac6e1dccf sys/arch/x86/x86/fpu.c
--- a/sys/arch/x86/x86/fpu.c    Tue Jul 25 09:14:06 2023 +0000
+++ b/sys/arch/x86/x86/fpu.c    Tue Jul 25 11:34:37 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu.c,v 1.55.2.1 2020/10/18 18:42:10 martin Exp $      */
+/*     $NetBSD: fpu.c,v 1.55.2.2 2023/07/25 11:34:37 martin Exp $      */
 
 /*
  * Copyright (c) 2008 The NetBSD Foundation, Inc.  All
@@ -96,7 +96,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu.c,v 1.55.2.1 2020/10/18 18:42:10 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu.c,v 1.55.2.2 2023/07/25 11:34:37 martin Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -153,7 +153,7 @@ void
 fpuinit_mxcsr_mask(void)
 {
 #ifndef XENPV
-       union savefpu fpusave __aligned(16);
+       union savefpu fpusave __aligned(64);
        u_long psl;
 
        memset(&fpusave, 0, sizeof(fpusave));



Home | Main Index | Thread Index | Old Index