From bcd4933a23f1dbdb5b5546b81f3305ebcb13c9c0 Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Tue, 12 May 2009 19:13:18 -0700 Subject: 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 Signed-off-by: malc --- linux-user/ppc/syscall.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'linux-user/ppc') diff --git a/linux-user/ppc/syscall.h b/linux-user/ppc/syscall.h index a21d61b..d789911 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 */ -- cgit v1.1