Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171002831
D57054.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
741 B
Referenced Files
None
Subscribers
None
D57054.id.diff
View Options
diff --git a/sys/x86/x86/ucode.c b/sys/x86/x86/ucode.c
--- a/sys/x86/x86/ucode.c
+++ b/sys/x86/x86/ucode.c
@@ -133,14 +133,13 @@
wrmsr_safe(MSR_BIOS_UPDT_TRIG, (uint64_t)(uintptr_t)data);
break;
case EARLY:
-#ifdef __amd64__
- wrmsr_early_safe_start();
- if (wrmsr_early_safe(MSR_BIOS_UPDT_TRIG,
- (uint64_t)(uintptr_t)data) != 0)
- ucode_error = LOAD_FAILED;
- wrmsr_early_safe_end();
- break;
-#endif
+ /*
+ * Intel's MSR_BIOS_UPDT_TRIG does not issue #GP, so the
+ * wrmsr_early_safe() fault-handling machinery is unnecessary
+ * and could introduce risks. Fall through to the bare wrmsr
+ * path.
+ */
+ /* FALLTHROUGH */
case UNSAFE:
wrmsr(MSR_BIOS_UPDT_TRIG, (uint64_t)(uintptr_t)data);
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 9, 3:16 AM (4 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38557924
Default Alt Text
D57054.id.diff (741 B)
Attached To
Mode
D57054: sys/x86/x86/ucode.c: Do not use wrmsr_early_safe() for Intel
Attached
Detach File
Event Timeline
Log In to Comment