summaryrefslogtreecommitdiff
path: root/linux-user/cris/target_signal.h
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-08 13:35:05 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-08 13:35:05 +0000
commite69b406510a7267b79d4ba7e8a1c8d4b28af2fb1 (patch)
treef8fe7f92cba1ad6fbff2d19c1d38302aacec7b49 /linux-user/cris/target_signal.h
parentdd43edf4e136bff05cbbb6b42b96c024c591dbb9 (diff)
downloadqemu-e69b406510a7267b79d4ba7e8a1c8d4b28af2fb1.zip
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.h29
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 */