summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-02-27 09:25:33 -0800
committerGabe Black <gblack@eecs.umich.edu>2009-02-27 09:25:33 -0800
commit5c1cc99d486870bb6942980474b535ec0917f85c (patch)
tree0093455fd607a68c0b60752f16a511046726321a /src
parent04dbed79f8c9b3069644f60b7b1087df392edd59 (diff)
downloadgem5-5c1cc99d486870bb6942980474b535ec0917f85c.tar.xz
X86: Add a 32 bit mmap2 system call.
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86/linux/linux.hh2
-rw-r--r--src/arch/x86/linux/syscalls.cc2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/arch/x86/linux/linux.hh b/src/arch/x86/linux/linux.hh
index c45caa19f..c6fe28318 100644
--- a/src/arch/x86/linux/linux.hh
+++ b/src/arch/x86/linux/linux.hh
@@ -136,6 +136,8 @@ class X86Linux32 : public Linux
// static const int TGT_O_RSYNC = 0x00040000; //!< O_RSYNC
static const int NUM_OPEN_FLAGS;
+
+ static const unsigned TGT_MAP_ANONYMOUS = 0x20;
};
#endif
diff --git a/src/arch/x86/linux/syscalls.cc b/src/arch/x86/linux/syscalls.cc
index 1d2d8d691..7969f2e41 100644
--- a/src/arch/x86/linux/syscalls.cc
+++ b/src/arch/x86/linux/syscalls.cc
@@ -696,7 +696,7 @@ SyscallDesc I386LinuxProcess::syscallDescs[] = {
/* 189 */ SyscallDesc("putpmsg", unimplementedFunc),
/* 190 */ SyscallDesc("vfork", unimplementedFunc),
/* 191 */ SyscallDesc("ugetrlimit", unimplementedFunc),
- /* 192 */ SyscallDesc("mmap2", unimplementedFunc),
+ /* 192 */ SyscallDesc("mmap2", mmapFunc<X86Linux32>),
/* 193 */ SyscallDesc("truncate64", unimplementedFunc),
/* 194 */ SyscallDesc("ftruncate64", unimplementedFunc),
/* 195 */ SyscallDesc("stat64", unimplementedFunc),