diff options
author | Richard Henderson <rth@twiddle.net> | 2016-12-15 09:58:14 -0800 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2017-01-23 09:52:39 -0800 |
commit | 925ccf32364026f17764c454d4c5ecec3c4310ba (patch) | |
tree | 9ff248db5241736a00ad6f9cad4101c1684fd70d /linux-user/hppa/target_signal.h | |
parent | 22991d19ab62bc48c2ef825b1278f2920005f9b4 (diff) | |
download | qemu-925ccf32364026f17764c454d4c5ecec3c4310ba.zip |
linux-user: Add HPPA target_signal.h and target_cpu.h
The cpu.h structure that these manipulate hasn't been defined
yet, but we haven't enabled compilation yet either.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'linux-user/hppa/target_signal.h')
-rw-r--r-- | linux-user/hppa/target_signal.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/linux-user/hppa/target_signal.h b/linux-user/hppa/target_signal.h new file mode 100644 index 0000000000..e115890b48 --- /dev/null +++ b/linux-user/hppa/target_signal.h @@ -0,0 +1,29 @@ +#ifndef HPPA_TARGET_SIGNAL_H +#define HPPA_TARGET_SIGNAL_H + +#include "cpu.h" + +/* this struct defines a stack used during syscall handling */ + +typedef struct target_sigaltstack { + abi_ulong ss_sp; + int32_t 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(CPUHPPAState *state) +{ + return state->gr[30]; +} + +#endif /* HPPA_TARGET_SIGNAL_H */ |