efirt: Move comment about fpu_kern_enter to where it is called

Reviewed by:	imp, kib, andrew, markj
Differential Revision:	https://reviews.freebsd.org/D41576
This commit is contained in:
John Baldwin 2023-08-25 12:33:00 -07:00
parent 3d8ef251aa
commit 8173fa60dd
2 changed files with 5 additions and 5 deletions

View File

@ -280,11 +280,6 @@ efi_create_1t1_map(struct efi_md *map, int ndesc, int descsz)
* reason to bother with the virtual map, and no need to add a
* complexity into loader.
*
* The fpu_kern_enter() call allows firmware to use FPU, as mandated
* by the specification. In particular, CR0.TS bit is cleared. Also
* it enters critical section, giving us neccessary protection against
* context switch.
*
* There is no need to disable interrupts around the change of %cr3,
* the kernel mappings are correct, while we only grabbed the
* userspace portion of VA. Interrupts handlers must not access

View File

@ -285,6 +285,11 @@ rt_ok(void)
return (0);
}
/*
* The fpu_kern_enter() call in allows firmware to use FPU, as
* mandated by the specification. It also enters a critical section,
* giving us neccessary protection against context switches.
*/
static int
efi_enter(void)
{