diff options
author | Javier Setoain <javier.setoain@arm.com> | 2019-01-09 14:24:31 +0000 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2019-01-10 17:56:24 +0000 |
commit | f3a438e58d836ec283af6eef8bb34b57958303d6 (patch) | |
tree | 77518cc8c11deeed861448a8785f3f25d0796157 /src/arch/arm | |
parent | b25900fd3ce31e95187d3a9520939a2faa1bb5c7 (diff) | |
download | gem5-f3a438e58d836ec283af6eef8bb34b57958303d6.tar.xz |
sim-se, arch-arm: Add support for getdents64
Change-Id: Ib27950144d4c9802ffb842db98aec9e433ccbfc5
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Cc: Giacomo Travaglini <giacomo.travaglini@arm.com>
Cc: Javier Setoain <javier.setoain@arm.com>
Cc: Brandon Potter <Brandon.Potter@amd.com>
Reviewed-on: https://gem5-review.googlesource.com/c/15438
Maintainer: Brandon Potter <Brandon.Potter@amd.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/arch/arm')
-rw-r--r-- | src/arch/arm/linux/process.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/arch/arm/linux/process.cc b/src/arch/arm/linux/process.cc index cb62e6ee7..61caa456b 100644 --- a/src/arch/arm/linux/process.cc +++ b/src/arch/arm/linux/process.cc @@ -46,6 +46,8 @@ #include "arch/arm/linux/process.hh" +#include <sys/syscall.h> + #include "arch/arm/isa_traits.hh" #include "arch/arm/linux/linux.hh" #include "base/trace.hh" @@ -342,7 +344,11 @@ static SyscallDesc syscallDescs32[] = { /* 214 */ SyscallDesc("setgid", unimplementedFunc), /* 215 */ SyscallDesc("setfsuid", unimplementedFunc), /* 216 */ SyscallDesc("setfsgid", unimplementedFunc), +#if defined(SYS_getdents64) + /* 217 */ SyscallDesc("getdents64", getdents64Func), +#else /* 217 */ SyscallDesc("getdents64", unimplementedFunc), +#endif /* 218 */ SyscallDesc("pivot_root", unimplementedFunc), /* 219 */ SyscallDesc("mincore", unimplementedFunc), /* 220 */ SyscallDesc("madvise", ignoreFunc), @@ -555,7 +561,11 @@ static SyscallDesc syscallDescs64[] = { /* 58 */ SyscallDesc("vhangup", unimplementedFunc), /* 59 */ SyscallDesc("pipe2", unimplementedFunc), /* 60 */ SyscallDesc("quotactl", unimplementedFunc), +#if defined(SYS_getdents64) + /* 61 */ SyscallDesc("getdents64", getdents64Func), +#else /* 61 */ SyscallDesc("getdents64", unimplementedFunc), +#endif /* 62 */ SyscallDesc("llseek", lseekFunc), /* 63 */ SyscallDesc("read", readFunc), /* 64 */ SyscallDesc("write", writeFunc), |