qga: fix guest-get-disks regression
[qemu/ar7.git] / bsd-user / sparc / target_arch_sysarch.h
blobd0b85ef6bbb807db877f5291dd60d4b92129addc
1 /*
2 * SPARC sysarch() system call emulation
4 * Copyright (c) 2013 Stacey D. Son
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
9 * (at your option) any later version.
11 * This program 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
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, see <http://www.gnu.org/licenses/>.
20 #ifndef BSD_USER_ARCH_SYSARCH_H_
21 #define BSD_USER_ARCH_SYSARCH_H_
23 #include "target_syscall.h"
25 static inline abi_long do_freebsd_arch_sysarch(void *env, int op,
26 abi_ulong parms)
28 int ret = 0;
30 switch (op) {
31 case TARGET_SPARC_SIGTRAMP_INSTALL:
32 /* XXX not currently handled */
33 case TARGET_SPARC_UTRAP_INSTALL:
34 /* XXX not currently handled */
35 default:
36 ret = -TARGET_EINVAL;
37 break;
40 return ret;
43 static inline void do_freebsd_arch_print_sysarch(
44 const struct syscallname *name, abi_long arg1, abi_long arg2,
45 abi_long arg3, abi_long arg4, abi_long arg5, abi_long arg6)
48 gemu_log("%s(%d, " TARGET_ABI_FMT_lx ", " TARGET_ABI_FMT_lx ", "
49 TARGET_ABI_FMT_lx ")", name->name, (int)arg1, arg2, arg3, arg4);
52 #endif /*!BSD_USER_ARCH_SYSARCH_H_ */