From bc74c58eaf55005a6a4b2e67657da4121554943c Mon Sep 17 00:00:00 2001 From: Brandon Potter Date: Wed, 18 Apr 2018 14:57:57 -0400 Subject: sim-se: add syscalls related to polling Fix poll so that it will use the syscall retry capability instead of causing a blocking call. Add the accept and wait4 system calls. Add polling to read to remove deadlocks that occur in the event queue that are caused by blocking system calls. Modify the write system call to return an error number in case of error. Change-Id: I0b4091a2e41e4187ebf69d63e0088f988f37d5da Reviewed-on: https://gem5-review.googlesource.com/c/12115 Reviewed-by: Anthony Gutierrez Maintainer: Anthony Gutierrez --- src/arch/arm/freebsd/process.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/arch/arm/freebsd/process.cc') diff --git a/src/arch/arm/freebsd/process.cc b/src/arch/arm/freebsd/process.cc index 1ecbdd678..e6aa74068 100644 --- a/src/arch/arm/freebsd/process.cc +++ b/src/arch/arm/freebsd/process.cc @@ -659,8 +659,8 @@ static SyscallDesc syscallDescs64[] = { /* 0 */ SyscallDesc("unused#000", unimplementedFunc), /* 1 */ SyscallDesc("exit", exitFunc), /* 2 */ SyscallDesc("unused#002", unimplementedFunc), - /* 3 */ SyscallDesc("read", readFunc), - /* 4 */ SyscallDesc("write", writeFunc), + /* 3 */ SyscallDesc("read", readFunc), + /* 4 */ SyscallDesc("write", writeFunc), /* 5 */ SyscallDesc("unused#005", unimplementedFunc), /* 6 */ SyscallDesc("unused#006", unimplementedFunc), /* 7 */ SyscallDesc("unused#007", unimplementedFunc), -- cgit v1.2.3