Add the "open" syscall.
authorGabe Black <gblack@eecs.umich.edu>
Sun, 22 Jul 2007 02:43:03 +0000 (02:43 +0000)
committerGabe Black <gblack@eecs.umich.edu>
Sun, 22 Jul 2007 02:43:03 +0000 (02:43 +0000)
--HG--
extra : convert_revision : d405ed5d3738639809dd2887955db9253138ccbb

src/arch/x86/linux/syscalls.cc

index 80978463573fe086846c43bf2b77db97e1123ba8..30360e602070d79a27472f2f970768325b9a845f 100644 (file)
@@ -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),