summaryrefslogtreecommitdiff
path: root/src/kern
diff options
context:
space:
mode:
authorMarc Orr <marc.orr@gmail.com>2012-07-10 22:51:54 -0700
committerMarc Orr <marc.orr@gmail.com>2012-07-10 22:51:54 -0700
commit387f843d513dd80554cb6361da36ba805dfbcea2 (patch)
tree17c32aeac4482a5e451af779f412cd8f94ea81f7 /src/kern
parent52540b1b785aac9b307dfcc976527d94899deb94 (diff)
downloadgem5-387f843d513dd80554cb6361da36ba805dfbcea2.tar.xz
syscall emulation: Add the futex system call.
Diffstat (limited to 'src/kern')
-rw-r--r--src/kern/linux/linux.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kern/linux/linux.hh b/src/kern/linux/linux.hh
index 30ebdbb4a..5721e5a58 100644
--- a/src/kern/linux/linux.hh
+++ b/src/kern/linux/linux.hh
@@ -171,6 +171,12 @@ class Linux : public OperatingSystem
static int openSpecialFile(std::string path, LiveProcess *process, ThreadContext *tc);
static std::string procMeminfo(LiveProcess *process, ThreadContext *tc);
+ // For futex system call
+ static const unsigned TGT_FUTEX_WAIT = 0;
+ static const unsigned TGT_FUTEX_WAKE = 1;
+ static const unsigned TGT_EAGAIN = 11;
+ static const unsigned TGT_EWOULDBLOCK = TGT_EAGAIN;
+
}; // class Linux
#endif // __LINUX_HH__