Patchwork [04/11] m68k, linux-user: enable sigaltstack()

login
register
mail settings
Submitter Riku Voipio
Date Aug. 13, 2009, 8:06 p.m.
Message ID <343e8d5a49734f154f5e9ccc61113c116a5990f4.1250193231.git.riku.voipio@iki.fi>
Download mbox | patch
Permalink /patch/31355/
State Superseded
Headers show

Comments

Riku Voipio - Aug. 13, 2009, 8:06 p.m.
From: Laurent Vivier <laurent@vivier.eu>

As setup_frame() and setup_rt_frame() are now implemented we can now
enable sigaltstack().

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
---
 linux-user/syscall.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 3b1ed60..fdd46ec 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -6108,7 +6108,8 @@  abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
         goto unimplemented;
     case TARGET_NR_sigaltstack:
 #if defined(TARGET_I386) || defined(TARGET_ARM) || defined(TARGET_MIPS) || \
-    defined(TARGET_SPARC) || defined(TARGET_PPC) || defined(TARGET_ALPHA)
+    defined(TARGET_SPARC) || defined(TARGET_PPC) || defined(TARGET_ALPHA) || \
+    defined(TARGET_M68K)
         ret = do_sigaltstack(arg1, arg2, get_sp_from_cpustate((CPUState *)cpu_env));
         break;
 #else