From 27daa9feb909ce33b7d23c9bc3486b12948aad1c Mon Sep 17 00:00:00 2001 From: "biao716.wang" Date: Fri, 5 Nov 2021 01:13:17 +0900 Subject: [PATCH] To support syscall_389 Change-Id: I7e780307e9c64525961fc70ecc7e1fcfb29d8d5e Signed-off-by: biao716.wang --- linux-user/syscall.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 08ee990..e1a7e11 100755 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -255,6 +255,9 @@ _syscall3(int, ioprio_set, int, which, int, who, int, ioprio) #if defined(TARGET_NR_getrandom) && defined(__NR_getrandom) _syscall3(int, getrandom, void *, buf, size_t, buflen, unsigned int, flags) #endif +#if defined(TARGET_NR_membarrier) && defined(__NR_membarrier) +_syscall2(int, membarrier, int, cmd, int, flags) +#endif static bitmask_transtbl fcntl_flags_tbl[] = { { TARGET_O_ACCMODE, TARGET_O_WRONLY, O_ACCMODE, O_WRONLY, }, @@ -11852,6 +11855,11 @@ abi_long do_syscall(void *cpu_env, int num, abi_ulong arg1, break; #endif +#if defined(TARGET_NR_membarrier) && defined(__NR_membarrier) + case TARGET_NR_membarrier: + return get_errno(membarrier(arg1, arg2)); +#endif + #if defined(TARGET_NR_keyctl) case TARGET_NR_keyctl: goto unimplemented_nowarn; -- 2.7.4