root / linux-user / s390x / syscall.h @ a4c075f1
History | View | Annotate | Download (525 Bytes)
1 | a4c075f1 | Ulrich Hecht | /* this typedef defines how a Program Status Word looks like */
|
---|---|---|---|
2 | a4c075f1 | Ulrich Hecht | typedef struct { |
3 | a4c075f1 | Ulrich Hecht | abi_ulong mask; |
4 | a4c075f1 | Ulrich Hecht | abi_ulong addr; |
5 | a4c075f1 | Ulrich Hecht | } __attribute__ ((aligned(8))) target_psw_t;
|
6 | a4c075f1 | Ulrich Hecht | |
7 | a4c075f1 | Ulrich Hecht | /*
|
8 | a4c075f1 | Ulrich Hecht | * The pt_regs struct defines the way the registers are stored on
|
9 | a4c075f1 | Ulrich Hecht | * the stack during a system call.
|
10 | a4c075f1 | Ulrich Hecht | */
|
11 | a4c075f1 | Ulrich Hecht | |
12 | a4c075f1 | Ulrich Hecht | #define TARGET_NUM_GPRS 16 |
13 | a4c075f1 | Ulrich Hecht | |
14 | a4c075f1 | Ulrich Hecht | struct target_pt_regs {
|
15 | a4c075f1 | Ulrich Hecht | abi_ulong args[1];
|
16 | a4c075f1 | Ulrich Hecht | target_psw_t psw; |
17 | a4c075f1 | Ulrich Hecht | abi_ulong gprs[TARGET_NUM_GPRS]; |
18 | a4c075f1 | Ulrich Hecht | abi_ulong orig_gpr2; |
19 | a4c075f1 | Ulrich Hecht | unsigned short ilc; |
20 | a4c075f1 | Ulrich Hecht | unsigned short trap; |
21 | a4c075f1 | Ulrich Hecht | }; |
22 | a4c075f1 | Ulrich Hecht | |
23 | a4c075f1 | Ulrich Hecht | #define UNAME_MACHINE "s390x" |