diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-08 13:35:05 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-08 13:35:05 +0000 |
commit | e69b406510a7267b79d4ba7e8a1c8d4b28af2fb1 (patch) | |
tree | f8fe7f92cba1ad6fbff2d19c1d38302aacec7b49 /linux-user/cris/target_signal.h | |
parent | dd43edf4e136bff05cbbb6b42b96c024c591dbb9 (diff) |
CRIS Linux usermode emulation, part 1. By Edgar E. Iglesias.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3366 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/cris/target_signal.h')
-rw-r--r-- | linux-user/cris/target_signal.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/linux-user/cris/target_signal.h b/linux-user/cris/target_signal.h new file mode 100644 index 0000000000..e566de8efc --- /dev/null +++ b/linux-user/cris/target_signal.h @@ -0,0 +1,29 @@ +#ifndef TARGET_SIGNAL_H +#define TARGET_SIGNAL_H + +#include "cpu.h" + +/* this struct defines a stack used during syscall handling */ + +typedef struct target_sigaltstack { + target_ulong ss_sp; + target_ulong ss_size; + target_long ss_flags; +} 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 target_ulong get_sp_from_cpustate(CPUCRISState *state) +{ + return state->regs[14]; +} + +#endif /* TARGET_SIGNAL_H */ |