summaryrefslogtreecommitdiff
path: root/src/arch/x86/linux/linux.hh
diff options
context:
space:
mode:
authorSteve Reinhardt <steve.reinhardt@amd.com>2011-10-22 22:30:07 -0700
committerSteve Reinhardt <steve.reinhardt@amd.com>2011-10-22 22:30:07 -0700
commit4d5f2c28a88f83d390e80407f55a8a02ead33878 (patch)
tree59f8aca2bd6995a396aade765156272998fc8bbf /src/arch/x86/linux/linux.hh
parentc6dd122feef8cfb4785b8d45f40907bd6c73e04a (diff)
downloadgem5-4d5f2c28a88f83d390e80407f55a8a02ead33878.tar.xz
syscall_emul: implement MAP_FIXED option to mmap()
Diffstat (limited to 'src/arch/x86/linux/linux.hh')
-rw-r--r--src/arch/x86/linux/linux.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch/x86/linux/linux.hh b/src/arch/x86/linux/linux.hh
index 99b09f405..4e5d43d45 100644
--- a/src/arch/x86/linux/linux.hh
+++ b/src/arch/x86/linux/linux.hh
@@ -88,6 +88,7 @@ class X86Linux64 : public Linux
static const int NUM_OPEN_FLAGS;
static const unsigned TGT_MAP_ANONYMOUS = 0x20;
+ static const unsigned TGT_MAP_FIXED = 0x10;
typedef struct {
uint64_t iov_base; // void *
@@ -158,6 +159,7 @@ class X86Linux32 : public Linux
static const int NUM_OPEN_FLAGS;
static const unsigned TGT_MAP_ANONYMOUS = 0x20;
+ static const unsigned TGT_MAP_FIXED = 0x10;
typedef struct {
int32_t uptime; /* Seconds since boot */