syscall.c (c7169b022b329a121d0c7acb550a08efa04d816a) syscall.c (0e0c030c681730f3ec55ba3b223b608a8f3e8282)
1/*
2 * Linux syscalls
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 10979 unchanged lines hidden (view full) ---

10988 error_get_pretty(err));
10989 error_free(err);
10990 return -TARGET_EIO;
10991 }
10992 return 0;
10993 }
10994 }
10995 return -TARGET_EINVAL;
1/*
2 * Linux syscalls
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 10979 unchanged lines hidden (view full) ---

10988 error_get_pretty(err));
10989 error_free(err);
10990 return -TARGET_EIO;
10991 }
10992 return 0;
10993 }
10994 }
10995 return -TARGET_EINVAL;
10996 case TARGET_PR_SET_TAGGED_ADDR_CTRL:
10997 {
10998 abi_ulong valid_mask = TARGET_PR_TAGGED_ADDR_ENABLE;
10999 CPUARMState *env = cpu_env;
11000
11001 if ((arg2 & ~valid_mask) || arg3 || arg4 || arg5) {
11002 return -TARGET_EINVAL;
11003 }
11004 env->tagged_addr_enable = arg2 & TARGET_PR_TAGGED_ADDR_ENABLE;
11005 return 0;
11006 }
11007 case TARGET_PR_GET_TAGGED_ADDR_CTRL:
11008 {
11009 abi_long ret = 0;
11010 CPUARMState *env = cpu_env;
11011
11012 if (arg2 || arg3 || arg4 || arg5) {
11013 return -TARGET_EINVAL;
11014 }
11015 if (env->tagged_addr_enable) {
11016 ret |= TARGET_PR_TAGGED_ADDR_ENABLE;
11017 }
11018 return ret;
11019 }
10996#endif /* AARCH64 */
10997 case PR_GET_SECCOMP:
10998 case PR_SET_SECCOMP:
10999 /* Disable seccomp to prevent the target disabling syscalls we
11000 * need. */
11001 return -TARGET_EINVAL;
11002 default:
11003 /* Most prctl options have no pointer arguments */

--- 2235 unchanged lines hidden ---
11020#endif /* AARCH64 */
11021 case PR_GET_SECCOMP:
11022 case PR_SET_SECCOMP:
11023 /* Disable seccomp to prevent the target disabling syscalls we
11024 * need. */
11025 return -TARGET_EINVAL;
11026 default:
11027 /* Most prctl options have no pointer arguments */

--- 2235 unchanged lines hidden ---