summaryrefslogtreecommitdiff
path: root/src/arch/x86/process.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-02-27 09:23:17 -0800
committerGabe Black <gblack@eecs.umich.edu>2009-02-27 09:23:17 -0800
commite23d688d8f7e728e694f15752cd70df84bc4ae67 (patch)
tree36d6f7eb00444b18141c51bcf2b079de48ca9106 /src/arch/x86/process.hh
parent281ef8111a15e8501cee03fdf35e0c41437518e2 (diff)
downloadgem5-e23d688d8f7e728e694f15752cd70df84bc4ae67.tar.xz
X86: Set up a space for a GDT in SE so we can set up TLS or LDT segments.
Diffstat (limited to 'src/arch/x86/process.hh')
-rw-r--r--src/arch/x86/process.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/arch/x86/process.hh b/src/arch/x86/process.hh
index e337e589e..2d72d3fd0 100644
--- a/src/arch/x86/process.hh
+++ b/src/arch/x86/process.hh
@@ -70,6 +70,9 @@ namespace X86ISA
class X86LiveProcess : public LiveProcess
{
protected:
+ Addr _gdtStart;
+ Addr _gdtSize;
+
SyscallDesc *syscallDescs;
const int numSyscallDescs;
@@ -80,6 +83,12 @@ namespace X86ISA
void argsInit(int pageSize);
public:
+ Addr gdtStart()
+ { return _gdtStart; }
+
+ Addr gdtSize()
+ { return _gdtSize; }
+
SyscallDesc* getDesc(int callnum);
void setSyscallReturn(ThreadContext *tc, SyscallReturn return_value);