Merge remote-tracking branch 'remotes/rth/tags/pull-atomic-20161026' into staging
[qemu/ar7.git] / linux-user / unicore32 / target_syscall.h
blob346b207700057bfd3357f0707dcf5120096dc2d4
1 /*
2 * Copyright (C) 2010-2011 GUAN Xue-tao
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
9 #ifndef UNICORE32_TARGET_SYSCALL_H
10 #define UNICORE32_TARGET_SYSCALL_H
12 struct target_pt_regs {
13 abi_ulong uregs[34];
16 #define UC32_REG_pc uregs[31]
17 #define UC32_REG_lr uregs[30]
18 #define UC32_REG_sp uregs[29]
19 #define UC32_REG_ip uregs[28]
20 #define UC32_REG_fp uregs[27]
21 #define UC32_REG_26 uregs[26]
22 #define UC32_REG_25 uregs[25]
23 #define UC32_REG_24 uregs[24]
24 #define UC32_REG_23 uregs[23]
25 #define UC32_REG_22 uregs[22]
26 #define UC32_REG_21 uregs[21]
27 #define UC32_REG_20 uregs[20]
28 #define UC32_REG_19 uregs[19]
29 #define UC32_REG_18 uregs[18]
30 #define UC32_REG_17 uregs[17]
31 #define UC32_REG_16 uregs[16]
32 #define UC32_REG_15 uregs[15]
33 #define UC32_REG_14 uregs[14]
34 #define UC32_REG_13 uregs[13]
35 #define UC32_REG_12 uregs[12]
36 #define UC32_REG_11 uregs[11]
37 #define UC32_REG_10 uregs[10]
38 #define UC32_REG_09 uregs[9]
39 #define UC32_REG_08 uregs[8]
40 #define UC32_REG_07 uregs[7]
41 #define UC32_REG_06 uregs[6]
42 #define UC32_REG_05 uregs[5]
43 #define UC32_REG_04 uregs[4]
44 #define UC32_REG_03 uregs[3]
45 #define UC32_REG_02 uregs[2]
46 #define UC32_REG_01 uregs[1]
47 #define UC32_REG_00 uregs[0]
48 #define UC32_REG_asr uregs[32]
49 #define UC32_REG_ORIG_00 uregs[33]
51 #define UC32_SYSCALL_BASE 0x900000
52 #define UC32_SYSCALL_ARCH_BASE 0xf0000
53 #define UC32_SYSCALL_NR_set_tls (UC32_SYSCALL_ARCH_BASE + 5)
55 #define UNAME_MACHINE "UniCore-II"
56 #define UNAME_MINIMUM_RELEASE "2.6.32"
58 #define TARGET_MINSIGSTKSZ 2048
59 #define TARGET_MLOCKALL_MCL_CURRENT 1
60 #define TARGET_MLOCKALL_MCL_FUTURE 2
62 #endif /* UNICORE32_TARGET_SYSCALL_H */