From: Gabe Black Date: Sun, 22 Jul 2007 02:43:03 +0000 (+0000) Subject: Add the "open" syscall. X-Git-Tag: m5_2.0_beta4~297^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2cd454d102b5da828b0fbf4b66ef1a24875e69f6;p=gem5.git Add the "open" syscall. --HG-- extra : convert_revision : d405ed5d3738639809dd2887955db9253138ccbb --- 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), /* 3 */ SyscallDesc("close", unimplementedFunc), /* 4 */ SyscallDesc("stat", unimplementedFunc), /* 5 */ SyscallDesc("fstat", unimplementedFunc),