changeset f541a09c5916 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=f541a09c5916
description:
X86: Set an initial value for the LDT selector.
diffstat:
1 file changed, 3 insertions(+)
src/arch/x86/process.cc | 3 +++
diffs (13 lines):
diff -r e831b4360cfe -r f541a09c5916 src/arch/x86/process.cc
--- a/src/arch/x86/process.cc Fri Feb 27 09:23:17 2009 -0800
+++ b/src/arch/x86/process.cc Fri Feb 27 09:23:27 2009 -0800
@@ -299,6 +299,9 @@
tc->setMiscRegNoEffect(MISCREG_TSG_EFF_BASE, _gdtStart);
tc->setMiscRegNoEffect(MISCREG_TSG_LIMIT, _gdtStart + _gdtSize - 1);
+ // Set the LDT selector to 0 to deactivate it.
+ tc->setMiscRegNoEffect(MISCREG_TSL, 0);
+
//Set up the registers that describe the operating mode.
CR0 cr0 = 0;
cr0.pg = 1; // Turn on paging.
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev