projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e23d688
)
X86: Set an initial value for the LDT selector.
author
Gabe Black
<gblack@eecs.umich.edu>
Fri, 27 Feb 2009 17:23:27 +0000
(09:23 -0800)
committer
Gabe Black
<gblack@eecs.umich.edu>
Fri, 27 Feb 2009 17:23:27 +0000
(09:23 -0800)
src/arch/x86/process.cc
patch
|
blob
|
history
diff --git
a/src/arch/x86/process.cc
b/src/arch/x86/process.cc
index 22030cbfa7aef95c6057c0e464f4bf278eafbcc4..54d5d07ab642106fccb8a08071765e2be06c09fc 100644
(file)
--- a/
src/arch/x86/process.cc
+++ b/
src/arch/x86/process.cc
@@
-299,6
+299,9
@@
I386LiveProcess::startup()
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.