Page MenuHomeFreeBSD

D31336.id.diff
No OneTemporary

D31336.id.diff

diff --git a/sys/amd64/amd64/mp_machdep.c b/sys/amd64/amd64/mp_machdep.c
--- a/sys/amd64/amd64/mp_machdep.c
+++ b/sys/amd64/amd64/mp_machdep.c
@@ -262,8 +262,8 @@
lgdt(&ap_gdt); /* does magic intra-segment return */
wrmsr(MSR_FSBASE, 0); /* User value */
- wrmsr(MSR_GSBASE, (u_int64_t)pc);
- wrmsr(MSR_KGSBASE, (u_int64_t)pc); /* XXX User value while we're in the kernel */
+ wrmsr(MSR_GSBASE, (uint64_t)pc);
+ wrmsr(MSR_KGSBASE, 0); /* User value */
fix_cpuid();
lidt(&r_idt);

File Metadata

Mime Type
text/plain
Expires
Mon, Oct 13, 9:20 PM (6 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23646399
Default Alt Text
D31336.id.diff (496 B)

Event Timeline