2 * mips64 system call definitions
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, see <http://www.gnu.org/licenses/>.
18 #ifndef _MIPS64_SYSCALL_H_
19 #define _MIPS64_SYSCALL_H_
22 * struct target_pt_regs defines the way the registers are stored on the stack
23 * during a system call.
26 struct target_pt_regs
{
27 /* Saved main processor registers. */
30 /* Saved special registers. */
34 abi_ulong cp0_badvaddr
;
40 #if defined(TARGET_WORDS_BIGENDIAN)
41 #define UNAME_MACHINE "mips64"
43 #define UNAME_MACHINE "mips64el"
46 #define TARGET_HW_MACHINE "mips"
47 #define TARGET_HW_MACHINE_ARCH UNAME_MACHINE
49 /* sysarch() commands */
50 #define TARGET_MIPS_SET_TLS 1
51 #define TARGET_MIPS_GET_TLS 2
53 #endif /* !_MIPS64_SYSCALL_H_ */