x86: initialize initial FPU state earlier

Make it under SI_SUB_CPU sysinit, instead of much later SI_SUB_DRIVERS.
The SI_SUB_DRIVERS survived from times when FPU used real ISA attachment,
now it is only pnp stub claiming id.

PR:	255997
Reviewed by:	jhb
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D30512
This commit is contained in:
Konstantin Belousov 2021-05-27 19:26:10 +03:00
parent 5e912f5fec
commit c56de177d2
2 changed files with 2 additions and 2 deletions

View File

@ -495,7 +495,7 @@ fpuinitstate(void *arg __unused)
intr_restore(saveintr);
}
/* EFIRT needs this to be initialized before we can enter our EFI environment */
SYSINIT(fpuinitstate, SI_SUB_DRIVERS, SI_ORDER_FIRST, fpuinitstate, NULL);
SYSINIT(fpuinitstate, SI_SUB_CPU, SI_ORDER_ANY, fpuinitstate, NULL);
/*
* Free coprocessor (if we have it).

View File

@ -551,7 +551,7 @@ npxinitstate(void *arg __unused)
start_emulating();
intr_restore(saveintr);
}
SYSINIT(npxinitstate, SI_SUB_DRIVERS, SI_ORDER_ANY, npxinitstate, NULL);
SYSINIT(npxinitstate, SI_SUB_CPU, SI_ORDER_ANY, npxinitstate, NULL);
/*
* Free coprocessor (if we have it).