Statistics
| Branch: | Revision:

root / linux-user / sparc64 / target_signal.h @ 67bd9ede

History | View | Annotate | Download (637 Bytes)

1 a04e134a ths
#ifndef TARGET_SIGNAL_H
2 a04e134a ths
#define TARGET_SIGNAL_H
3 a04e134a ths
4 a04e134a ths
#include "cpu.h"
5 a04e134a ths
6 a04e134a ths
/* this struct defines a stack used during syscall handling */
7 a04e134a ths
8 a04e134a ths
typedef struct target_sigaltstack {
9 992f48a0 blueswir1
        abi_ulong ss_sp;
10 992f48a0 blueswir1
        abi_long ss_flags;
11 992f48a0 blueswir1
        abi_ulong ss_size;
12 c227f099 Anthony Liguori
} target_stack_t;
13 a04e134a ths
14 a04e134a ths
15 a04e134a ths
/*
16 a04e134a ths
 * sigaltstack controls
17 a04e134a ths
 */
18 a04e134a ths
#define TARGET_SS_ONSTACK        1
19 a04e134a ths
#define TARGET_SS_DISABLE        2
20 a04e134a ths
21 a04e134a ths
#define TARGET_MINSIGSTKSZ        4096
22 a04e134a ths
#define TARGET_SIGSTKSZ                16384
23 a04e134a ths
24 0574b6fb ths
#ifndef UREG_I6
25 0574b6fb ths
#define UREG_I6        6
26 0574b6fb ths
#endif
27 0574b6fb ths
#ifndef UREG_FP
28 0574b6fb ths
#define UREG_FP        UREG_I6
29 0574b6fb ths
#endif
30 0574b6fb ths
31 992f48a0 blueswir1
static inline abi_ulong get_sp_from_cpustate(CPUSPARCState *state)
32 0574b6fb ths
{
33 0574b6fb ths
    return state->regwptr[UREG_FP];
34 0574b6fb ths
}
35 0574b6fb ths
36 a04e134a ths
#endif /* TARGET_SIGNAL_H */