Statistics
| Branch: | Revision:

root / linux-user / cris / target_signal.h @ 6a24a778

History | View | Annotate | Download (540 Bytes)

1 e69b4065 ths
#ifndef TARGET_SIGNAL_H
2 e69b4065 ths
#define TARGET_SIGNAL_H
3 e69b4065 ths
4 e69b4065 ths
#include "cpu.h"
5 e69b4065 ths
6 e69b4065 ths
/* this struct defines a stack used during syscall handling */
7 e69b4065 ths
8 e69b4065 ths
typedef struct target_sigaltstack {
9 992f48a0 blueswir1
        abi_ulong ss_sp;
10 992f48a0 blueswir1
        abi_ulong ss_size;
11 992f48a0 blueswir1
        abi_long ss_flags;
12 e69b4065 ths
} target_stack_t;
13 e69b4065 ths
14 e69b4065 ths
15 e69b4065 ths
/*
16 e69b4065 ths
 * sigaltstack controls
17 e69b4065 ths
 */
18 e69b4065 ths
#define TARGET_SS_ONSTACK     1
19 e69b4065 ths
#define TARGET_SS_DISABLE     2
20 e69b4065 ths
21 e69b4065 ths
#define TARGET_MINSIGSTKSZ    2048
22 e69b4065 ths
#define TARGET_SIGSTKSZ       8192
23 e69b4065 ths
24 992f48a0 blueswir1
static inline abi_ulong get_sp_from_cpustate(CPUCRISState *state)
25 e69b4065 ths
{
26 e69b4065 ths
    return state->regs[14];
27 e69b4065 ths
}
28 e69b4065 ths
29 e69b4065 ths
#endif /* TARGET_SIGNAL_H */