1 /*
2 * ARM AArch64 sysarch() system call emulation for bsd-user.
3 *
4 * Copyright (c) 2015 <sson at FreeBSD>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #ifndef TARGET_ARCH_SYSARCH_H
21 #define TARGET_ARCH_SYSARCH_H
22
23 #include "target_syscall.h"
24 #include "target_arch.h"
25
26 /* See sysarch() in sys/arm64/arm64/sys_machdep.c */
do_freebsd_arch_sysarch(CPUARMState * env,int op,abi_ulong parms)27 static inline abi_long do_freebsd_arch_sysarch(CPUARMState *env, int op,
28 abi_ulong parms)
29 {
30 int ret = -TARGET_EOPNOTSUPP;
31
32 fprintf(stderr, "sysarch");
33 return ret;
34 }
35
do_freebsd_arch_print_sysarch(const struct syscallname * name,abi_long arg1,abi_long arg2,abi_long arg3,abi_long arg4,abi_long arg5,abi_long arg6)36 static inline void do_freebsd_arch_print_sysarch(
37 const struct syscallname *name, abi_long arg1, abi_long arg2,
38 abi_long arg3, abi_long arg4, abi_long arg5, abi_long arg6)
39 {
40 }
41
42 #endif /* TARGET_ARCH_SYSARCH_H */
43