2016-06-29 16:09:50 +02:00
|
|
|
#ifndef S390X_TARGET_SIGNAL_H
|
|
|
|
#define S390X_TARGET_SIGNAL_H
|
2009-07-24 16:57:31 +02: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-12 19:47:40 +02:00
|
|
|
|
2016-06-29 16:09:50 +02:00
|
|
|
#endif /* S390X_TARGET_SIGNAL_H */
|