From 2cd454d102b5da828b0fbf4b66ef1a24875e69f6 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 22 Jul 2007 02:43:03 +0000 Subject: [PATCH] Add the "open" syscall. --HG-- extra : convert_revision : d405ed5d3738639809dd2887955db9253138ccbb --- src/arch/x86/linux/syscalls.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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), -- 2.30.2