2016-06-29 22:09:50 +08:00
|
|
|
#ifndef S390X_TARGET_SIGNAL_H
|
|
|
|
#define S390X_TARGET_SIGNAL_H
|
2009-07-24 22:57:31 +08:00
|
|
|
|
|
|
|
#include "cpu.h"
|
|
|
|
|
|
|
|
typedef struct target_sigaltstack {
|
|
|
|
abi_ulong ss_sp;
|
|
|
|
int ss_flags;
|
|
|
|
abi_ulong ss_size;
|
|
|
|
} target_stack_t;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* sigaltstack controls
|
|
|
|
*/
|
|
|
|
#define TARGET_SS_ONSTACK 1
|
|
|
|
#define TARGET_SS_DISABLE 2
|
|
|
|
|
|
|
|
#define TARGET_MINSIGSTKSZ 2048
|
|
|
|
#define TARGET_SIGSTKSZ 8192
|
|
|
|
|
|
|
|
static inline abi_ulong get_sp_from_cpustate(CPUS390XState *state)
|
|
|
|
{
|
|
|
|
return state->regs[15];
|
|
|
|
}
|
|
|
|
|
2016-05-13 01:47:40 +08:00
|
|
|
|
2016-06-29 22:09:50 +08:00
|
|
|
#endif /* S390X_TARGET_SIGNAL_H */
|