aboutsummaryrefslogtreecommitdiff
path: root/linux-user/ppc
diff options
context:
space:
mode:
authorNathan Froyd <froydnj@codesourcery.com>2009-05-12 19:13:18 -0700
committermalc <av1474@comtv.ru>2009-05-16 01:36:12 +0400
commitbcd4933a23f1dbdb5b5546b81f3305ebcb13c9c0 (patch)
tree950314ceb935ce3fcb11bb1f62d9ab24ac0cf243 /linux-user/ppc
parentc29b735c50524c0561def6f4f04502a581a15683 (diff)
linux-user: ppc signal handling
Implement setup_{,rt_}frame and do_{,rt_}sigreturn for PPC 32-bit. Use the same TARGET_QEMU_ESIGRETURN hack as for MIPS to avoid clobbering register state on a sigreturn. Signed-off-by: Nathan Froyd <froydnj@codesourcery.com> Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'linux-user/ppc')
-rw-r--r--linux-user/ppc/syscall.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux-user/ppc/syscall.h b/linux-user/ppc/syscall.h
index a21d61b1d5..d789911e8a 100644
--- a/linux-user/ppc/syscall.h
+++ b/linux-user/ppc/syscall.h
@@ -51,6 +51,9 @@ struct target_revectored_struct {
abi_ulong __map[8]; /* 256 bits */
};
+/* Nasty hack: define a fake errno value for use by sigreturn. */
+#define TARGET_QEMU_ESIGRETURN 255
+
/*
* flags masks
*/