upon resume, fpureset() was being called prematurely (before cpu_init,
authorderaadt <deraadt@openbsd.org>
Wed, 7 Jun 2023 04:46:09 +0000 (04:46 +0000)
committerderaadt <deraadt@openbsd.org>
Wed, 7 Jun 2023 04:46:09 +0000 (04:46 +0000)
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

sys/arch/amd64/amd64/acpi_machdep.c

index 23ca827..6980217 100644 (file)
@@ -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 <tholo@sigmasoft.com>
  *
@@ -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;