aboutsummaryrefslogtreecommitdiff
path: root/sys/i386
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2000-10-05 20:30:36 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2000-10-05 20:30:36 +0000
commitd238b8331576bdb994ce297fc0269ebdceda465a (patch)
treec7ac56512dab3537e3024dcc449270f3d2b59bee /sys/i386
parent1219828400bccbae5e1303138202282b3665bf20 (diff)
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.
Notes
Notes: svn path=/head/; revision=66692
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/include/globaldata.h4
-rw-r--r--sys/i386/include/pcpu.h4
2 files changed, 2 insertions, 6 deletions
diff --git a/sys/i386/include/globaldata.h b/sys/i386/include/globaldata.h
index 440da60b4b83..ace3602a2844 100644
--- a/sys/i386/include/globaldata.h
+++ b/sys/i386/include/globaldata.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;
diff --git a/sys/i386/include/pcpu.h b/sys/i386/include/pcpu.h
index 440da60b4b83..ace3602a2844 100644
--- a/sys/i386/include/pcpu.h
+++ b/sys/i386/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;