[mq]: x86syscalls.patch
authorVince Weaver <vince@csl.cornell.edu>
Tue, 15 Sep 2009 12:30:08 +0000 (05:30 -0700)
committerVince Weaver <vince@csl.cornell.edu>
Tue, 15 Sep 2009 12:30:08 +0000 (05:30 -0700)
src/arch/x86/linux/syscalls.cc

index 4d7bca95c2fae54a37343edeb295156ab73f8756..5a425ed9a22fc08e37fc26175e02848554699548 100644 (file)
@@ -508,12 +508,12 @@ const int X86_64LinuxProcess::numSyscalls =
 
 SyscallDesc I386LinuxProcess::syscallDescs[] = {
     /*   0 */ SyscallDesc("restart_syscall", unimplementedFunc),
-    /*   1 */ SyscallDesc("exit", unimplementedFunc),
+    /*   1 */ SyscallDesc("exit", exitFunc),
     /*   2 */ SyscallDesc("fork", unimplementedFunc),
-    /*   3 */ SyscallDesc("read", unimplementedFunc),
+    /*   3 */ SyscallDesc("read", readFunc),
     /*   4 */ SyscallDesc("write", writeFunc),
-    /*   5 */ SyscallDesc("open", openFunc<X86Linux64>),
-    /*   6 */ SyscallDesc("close", unimplementedFunc),
+    /*   5 */ SyscallDesc("open", openFunc<X86Linux32>),
+    /*   6 */ SyscallDesc("close", closeFunc),
     /*   7 */ SyscallDesc("waitpid", unimplementedFunc),
     /*   8 */ SyscallDesc("creat", unimplementedFunc),
     /*   9 */ SyscallDesc("link", unimplementedFunc),