aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/include/globaldata.h
diff options
context:
space:
mode:
authorMike Smith <msmith@FreeBSD.org>1998-08-18 07:47:12 +0000
committerMike Smith <msmith@FreeBSD.org>1998-08-18 07:47:12 +0000
commit287e61c39fb0133a57095482898b40905f19fb84 (patch)
treeaa054c200e9c52df01fbb8f2a1cb1bfd8693b8be /sys/i386/include/globaldata.h
parent95332616afd04cc0fa5a570cfb6b6015e25ffc87 (diff)
Presently there is only one `currentldt' variable for all cpus
in a SMP system. Unexpected things could happen if each cpu has a different ldt setting and one cpu tries to use value of currentldt set by another cpu. The fix is to move currentldt to the per-cpu area. It includes patches I filed in PR i386/6219 which are also user ldt related. PR: i386/7591, i386/6219 Submitted by: Luoqi Chen <luoqi@watermarkgroup.com>
Notes
Notes: svn path=/head/; revision=38422
Diffstat (limited to 'sys/i386/include/globaldata.h')
-rw-r--r--sys/i386/include/globaldata.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/i386/include/globaldata.h b/sys/i386/include/globaldata.h
index c6c5a175fb12..e182d0a8af51 100644
--- a/sys/i386/include/globaldata.h
+++ b/sys/i386/include/globaldata.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: globaldata.h,v 1.4 1998/05/17 23:08:02 tegge Exp $
+ * $Id: globaldata.h,v 1.5 1998/05/28 09:30:02 phk Exp $
*/
/*
@@ -49,6 +49,9 @@ struct globaldata {
u_int private_tss;
u_int my_tr;
#endif
+#ifdef USER_LDT
+ int currentldt;
+#endif
#ifdef SMP
u_int cpuid;
u_int cpu_lockid;