From: deraadt Date: Wed, 7 Jun 2023 04:46:09 +0000 (+0000) Subject: upon resume, fpureset() was being called prematurely (before cpu_init, X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f0b3f88179a9cb03873c56fec0c8e0de1aa03d4e;p=openbsd upon resume, fpureset() was being called prematurely (before cpu_init, which does not matter today, but will matter a lot in near future). But actually it isn't needed at all, cpu_init() does it again. So remove the call. ok guenther --- diff --git a/sys/arch/amd64/amd64/acpi_machdep.c b/sys/arch/amd64/amd64/acpi_machdep.c index 23ca827907b..6980217ba01 100644 --- a/sys/arch/amd64/amd64/acpi_machdep.c +++ b/sys/arch/amd64/amd64/acpi_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi_machdep.c,v 1.107 2023/04/24 09:04:03 dv Exp $ */ +/* $OpenBSD: acpi_machdep.c,v 1.108 2023/06/07 04:46:09 deraadt Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert * @@ -436,7 +436,6 @@ acpi_sleep_cpu(struct acpi_softc *sc, int state) /* Resume path */ if (curcpu()->ci_feature_sefflags_edx & SEFF0EDX_IBT) lcr4(rcr4() | CR4_CET); - fpureset(); /* Reset the vectors */ sc->sc_facs->wakeup_vector = 0;