Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/de725b95c03a
branches:  netbsd-10
changeset: 378180:de725b95c03a
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Jul 25 11:29:23 2023 +0000

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

        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 8eea13ca2a0c -r de725b95c03a sys/arch/x86/x86/fpu.c
--- a/sys/arch/x86/x86/fpu.c    Tue Jul 25 09:11:51 2023 +0000
+++ b/sys/arch/x86/x86/fpu.c    Tue Jul 25 11:29:23 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu.c,v 1.79 2022/08/20 11:34:08 riastradh Exp $       */
+/*     $NetBSD: fpu.c,v 1.79.4.1 2023/07/25 11:29:23 martin Exp $      */
 
 /*
  * Copyright (c) 2008, 2019 The NetBSD Foundation, Inc.  All
@@ -96,7 +96,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu.c,v 1.79 2022/08/20 11:34:08 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu.c,v 1.79.4.1 2023/07/25 11:29:23 martin Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -188,7 +188,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