Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F96605650
D41576.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D41576.diff
View Options
diff --git a/sys/amd64/amd64/efirt_machdep.c b/sys/amd64/amd64/efirt_machdep.c
--- a/sys/amd64/amd64/efirt_machdep.c
+++ b/sys/amd64/amd64/efirt_machdep.c
@@ -280,11 +280,6 @@
* 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
diff --git a/sys/dev/efidev/efirt.c b/sys/dev/efidev/efirt.c
--- a/sys/dev/efidev/efirt.c
+++ b/sys/dev/efidev/efirt.c
@@ -285,6 +285,11 @@
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)
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Sep 26, 5:00 PM (21 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
12849125
Default Alt Text
D41576.diff (1 KB)
Attached To
Mode
D41576: efirt: Move comment about fpu_kern_enter to where it is called
Attached
Detach File
Event Timeline
Log In to Comment