Module Name: src Committed By: riastradh Date: Tue Oct 17 11:11:49 UTC 2023
Modified Files: src/sys/arch/x86/x86: identcpu.c Log Message: x86: Remove incomplete fpu save size check. Will fix it later, but this makes pullups easier. To generate a diff of this commit: cvs rdiff -u -r1.125 -r1.126 src/sys/arch/x86/x86/identcpu.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/identcpu.c diff -u src/sys/arch/x86/x86/identcpu.c:1.125 src/sys/arch/x86/x86/identcpu.c:1.126 --- src/sys/arch/x86/x86/identcpu.c:1.125 Sun Oct 15 16:11:22 2023 +++ src/sys/arch/x86/x86/identcpu.c Tue Oct 17 11:11:49 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: identcpu.c,v 1.125 2023/10/15 16:11:22 riastradh Exp $ */ +/* $NetBSD: identcpu.c,v 1.126 2023/10/17 11:11:49 riastradh Exp $ */ /*- * Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.125 2023/10/15 16:11:22 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.126 2023/10/17 11:11:49 riastradh Exp $"); #include "opt_xen.h" @@ -769,15 +769,8 @@ cpu_probe_fpu(struct cpu_info *ci) /* Get features and maximum size of the save area */ x86_cpuid(0xd, descs); - if (descs[2] > sizeof(struct fxsave)) { -#if 0 /* XXX breaks boot because of pcb abuse */ - if (descs[2] > sizeof(union savefpu)) { - panic("CPU's FPU save size too large: %u > %zu", - descs[2], sizeof(union savefpu)); - } -#endif + if (descs[2] > sizeof(struct fxsave)) x86_fpu_save_size = descs[2]; - } x86_xsave_features = (uint64_t)descs[3] << 32 | descs[0];