diff options
author | jhb <jhb@FreeBSD.org> | 2000-10-05 20:30:36 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2000-10-05 20:30:36 +0000 |
commit | e78e88817e8e32c185fb1603255622916728d8e0 (patch) | |
tree | d0d681ccad84efb2f4d568744b42fb51c3c30488 /sys/i386 | |
parent | 8bcff28992a84b6a5f889b4a8f919cd42c059e2b (diff) | |
download | FreeBSD-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/i386')
-rw-r--r-- | sys/i386/include/globaldata.h | 4 | ||||
-rw-r--r-- | sys/i386/include/pcpu.h | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/sys/i386/include/globaldata.h b/sys/i386/include/globaldata.h index 440da60..ace3602 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 440da60..ace3602 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; |