Module Name: src Committed By: riastradh Date: Fri Mar 3 14:40:16 UTC 2023
Modified Files: src/sys/arch/x86/x86: fpu.c Log Message: 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?) XXX pullup-10 To generate a diff of this commit: cvs rdiff -u -r1.85 -r1.86 src/sys/arch/x86/x86/fpu.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/x86/x86/fpu.c diff -u src/sys/arch/x86/x86/fpu.c:1.85 src/sys/arch/x86/x86/fpu.c:1.86 --- src/sys/arch/x86/x86/fpu.c:1.85 Fri Mar 3 14:32:48 2023 +++ src/sys/arch/x86/x86/fpu.c Fri Mar 3 14:40:16 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: fpu.c,v 1.85 2023/03/03 14:32:48 riastradh Exp $ */ +/* $NetBSD: fpu.c,v 1.86 2023/03/03 14:40:16 riastradh 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.85 2023/03/03 14:32:48 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: fpu.c,v 1.86 2023/03/03 14:40:16 riastradh 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));