From: biao716.wang Date: Thu, 4 Nov 2021 16:13:17 +0000 (+0900) Subject: To support syscall_389 X-Git-Tag: upstream/4.2.0~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=27daa9feb909ce33b7d23c9bc3486b12948aad1c;p=platform%2Fupstream%2Fqemu.git To support syscall_389 Change-Id: I7e780307e9c64525961fc70ecc7e1fcfb29d8d5e Signed-off-by: biao716.wang --- 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;