summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/amd64/amd64/machdep.c2
-rw-r--r--sys/i386/i386/machdep.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index 875c9d5..c94fa3d 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -1911,7 +1911,7 @@ init386(first)
_default_ldt = GSEL(GLDT_SEL, SEL_KPL);
lldt(_default_ldt);
#ifdef USER_LDT
- currentldt = _default_ldt;
+ PCPU_SET(currentldt, _default_ldt);
#endif
/* exceptions */
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c
index 875c9d5..c94fa3d 100644
--- a/sys/i386/i386/machdep.c
+++ b/sys/i386/i386/machdep.c
@@ -1911,7 +1911,7 @@ init386(first)
_default_ldt = GSEL(GLDT_SEL, SEL_KPL);
lldt(_default_ldt);
#ifdef USER_LDT
- currentldt = _default_ldt;
+ PCPU_SET(currentldt, _default_ldt);
#endif
/* exceptions */
OpenPOWER on IntegriCloud