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