summaryrefslogtreecommitdiff
path: root/src/arch/x86/linux/syscalls.cc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-07-22 02:43:03 +0000
committerGabe Black <gblack@eecs.umich.edu>2007-07-22 02:43:03 +0000
commit2cd454d102b5da828b0fbf4b66ef1a24875e69f6 (patch)
tree376b5d4cfed505972bfb44ec8d627e066bf299fa /src/arch/x86/linux/syscalls.cc
parent47b024261895adf02ca6428a9ba67db16d2172b1 (diff)
downloadgem5-2cd454d102b5da828b0fbf4b66ef1a24875e69f6.tar.xz
Add the "open" syscall.
--HG-- extra : convert_revision : d405ed5d3738639809dd2887955db9253138ccbb
Diffstat (limited to 'src/arch/x86/linux/syscalls.cc')
-rw-r--r--src/arch/x86/linux/syscalls.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/arch/x86/linux/syscalls.cc b/src/arch/x86/linux/syscalls.cc
index 809784635..30360e602 100644
--- a/src/arch/x86/linux/syscalls.cc
+++ b/src/arch/x86/linux/syscalls.cc
@@ -56,6 +56,7 @@
*/
#include "arch/x86/linux/process.hh"
+#include "arch/x86/linux/linux.hh"
#include "kern/linux/linux.hh"
#include "sim/syscall_emul.hh"
@@ -82,7 +83,7 @@ unameFunc(SyscallDesc *desc, int callnum, LiveProcess *process,
SyscallDesc X86LinuxProcess::syscallDescs[] = {
/* 0 */ SyscallDesc("read", unimplementedFunc),
/* 1 */ SyscallDesc("write", unimplementedFunc),
- /* 2 */ SyscallDesc("open", unimplementedFunc),
+ /* 2 */ SyscallDesc("open", openFunc<X86Linux>),
/* 3 */ SyscallDesc("close", unimplementedFunc),
/* 4 */ SyscallDesc("stat", unimplementedFunc),
/* 5 */ SyscallDesc("fstat", unimplementedFunc),