]>
Commit | Line | Data |
---|---|---|
9c93ae13 MA |
1 | #ifndef OPENRISC_TARGET_SIGNAL_H |
2 | #define OPENRISC_TARGET_SIGNAL_H | |
a8720299 | 3 | |
a8720299 JL |
4 | /* this struct defines a stack used during syscall handling */ |
5 | ||
6 | typedef struct target_sigaltstack { | |
7 | abi_long ss_sp; | |
4151e530 | 8 | abi_int ss_flags; |
a8720299 | 9 | abi_ulong ss_size; |
a8720299 JL |
10 | } target_stack_t; |
11 | ||
12 | /* sigaltstack controls */ | |
13 | #define TARGET_SS_ONSTACK 1 | |
14 | #define TARGET_SS_DISABLE 2 | |
15 | ||
5795083b LV |
16 | #define TARGET_SA_NOCLDSTOP 0x00000001 |
17 | #define TARGET_SA_NOCLDWAIT 0x00000002 | |
18 | #define TARGET_SA_SIGINFO 0x00000004 | |
19 | #define TARGET_SA_ONSTACK 0x08000000 | |
20 | #define TARGET_SA_RESTART 0x10000000 | |
21 | #define TARGET_SA_NODEFER 0x40000000 | |
22 | #define TARGET_SA_RESETHAND 0x80000000 | |
23 | ||
a8720299 JL |
24 | #define TARGET_MINSIGSTKSZ 2048 |
25 | #define TARGET_SIGSTKSZ 8192 | |
26 | ||
e5171a9e LV |
27 | #include "../generic/signal.h" |
28 | ||
9c93ae13 | 29 | #endif /* OPENRISC_TARGET_SIGNAL_H */ |