summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_smp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/subr_smp.c')
-rw-r--r--sys/kern/subr_smp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c
index 95b5759..67422b2 100644
--- a/sys/kern/subr_smp.c
+++ b/sys/kern/subr_smp.c
@@ -480,7 +480,7 @@ init_secondary(void)
lldt(_default_ldt);
#ifdef USER_LDT
- currentldt = _default_ldt;
+ PCPU_SET(currentldt, _default_ldt);
#endif
gsel_tss = GSEL(GPROC0_SEL, SEL_KPL);
OpenPOWER on IntegriCloud