diff options
Diffstat (limited to 'sys/arch/amd64/amd64/machdep.c')
-rw-r--r-- | sys/arch/amd64/amd64/machdep.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c index 2185028..3a1eeb1 100644 --- a/sys/arch/amd64/amd64/machdep.c +++ b/sys/arch/amd64/amd64/machdep.c @@ -159,8 +159,7 @@ cpu_startup(struct cpu_info *ci) idt_load(); setup_vectors(); - amd64_write_gs_base((uintptr_t)ci); - __ASMV("swapgs"); /* Get kernel GS */ + wrmsr(IA32_GS_BASE, (uintptr_t)ci); init_tss(ci); try_mitigate_spectre(); |