aboutsummaryrefslogtreecommitdiff
path: root/linux-user/arm/target_signal.h
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-27 16:44:32 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-27 16:44:32 +0000
commit198a74de4c61d3486c365f09361c605daab90af5 (patch)
treeb518f4236b5689bc1c4b3f405e3019901aa34a8c /linux-user/arm/target_signal.h
parenta04e134ad1f4271bea2c7b7649b21e35ded91005 (diff)
downloadqemu-198a74de4c61d3486c365f09361c605daab90af5.zip
qemu-198a74de4c61d3486c365f09361c605daab90af5.tar.gz
qemu-198a74de4c61d3486c365f09361c605daab90af5.tar.bz2
Move get_sp_from_cpustate from cpu.h to target_signal.h.
Enable sigaltstack processing for more architectures. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3253 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/arm/target_signal.h')
-rw-r--r--linux-user/arm/target_signal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux-user/arm/target_signal.h b/linux-user/arm/target_signal.h
index eb4a0bb..d518165 100644
--- a/linux-user/arm/target_signal.h
+++ b/linux-user/arm/target_signal.h
@@ -21,4 +21,9 @@ typedef struct target_sigaltstack {
#define TARGET_MINSIGSTKSZ 2048
#define TARGET_SIGSTKSZ 8192
+static inline target_ulong get_sp_from_cpustate(CPUARMState *state)
+{
+ return state->regs[13];
+}
+
#endif /* TARGET_SIGNAL_H */