summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2000-10-05 20:30:36 +0000
committerjhb <jhb@FreeBSD.org>2000-10-05 20:30:36 +0000
commite78e88817e8e32c185fb1603255622916728d8e0 (patch)
treed0d681ccad84efb2f4d568744b42fb51c3c30488 /sys/amd64/include
parent8bcff28992a84b6a5f889b4a8f919cd42c059e2b (diff)
downloadFreeBSD-src-e78e88817e8e32c185fb1603255622916728d8e0.zip
FreeBSD-src-e78e88817e8e32c185fb1603255622916728d8e0.tar.gz
Make the gd_currentldt member in struct globaldata unconditional so
that this header doesn't depend on USER_LDT. This fixes the USER_LDT breakage with SMP kernels.
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/pcpu.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/amd64/include/pcpu.h b/sys/amd64/include/pcpu.h
index 440da60..ace3602 100644
--- a/sys/amd64/include/pcpu.h
+++ b/sys/amd64/include/pcpu.h
@@ -65,9 +65,7 @@ struct globaldata {
int gd_intr_nesting_level;
struct segment_descriptor gd_common_tssd;
struct segment_descriptor *gd_tss_gdt;
-#ifdef USER_LDT
- int gd_currentldt;
-#endif
+ int gd_currentldt; /* only used for USER_LDT */
#ifdef SMP
u_int gd_cpuid;
u_int gd_cpu_lockid;
OpenPOWER on IntegriCloud