aboutsummaryrefslogtreecommitdiff
path: root/linux-user/unicore32/target_signal.h
diff options
context:
space:
mode:
authorGuan Xuetao <gxt@mprc.pku.edu.cn>2011-04-12 16:26:27 +0800
committerBlue Swirl <blauwirbel@gmail.com>2011-04-12 18:48:43 +0000
commit8b5d487d4d35a1a18c3ac48f3dd367fb769592b2 (patch)
tree70bf10e0740c217f784323a22514b8b87b49541b /linux-user/unicore32/target_signal.h
parent6e64da3cd6890181fbeaaae7c08cfb779f138d82 (diff)
unicore32: add necessry headers in linux-user/unicore32 for unicore32 support
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'linux-user/unicore32/target_signal.h')
-rw-r--r--linux-user/unicore32/target_signal.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/linux-user/unicore32/target_signal.h b/linux-user/unicore32/target_signal.h
new file mode 100644
index 0000000000..8b255c4550
--- /dev/null
+++ b/linux-user/unicore32/target_signal.h
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2010-2011 GUAN Xue-tao
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+#ifndef TARGET_SIGNAL_H
+#define TARGET_SIGNAL_H
+
+/* this struct defines a stack used during syscall handling */
+typedef struct target_sigaltstack {
+ abi_ulong ss_sp;
+ abi_ulong ss_flags;
+ abi_ulong ss_size;
+} target_stack_t;
+
+/*
+ * sigaltstack controls
+ */
+#define TARGET_SS_ONSTACK 1
+#define TARGET_SS_DISABLE 2
+
+#define get_sp_from_cpustate(cpustate) (cpustate->regs[29])
+
+#endif /* TARGET_SIGNAL_H */