diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-09-27 13:57:58 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-09-27 13:57:58 +0000 |
commit | a04e134ad1f4271bea2c7b7649b21e35ded91005 (patch) | |
tree | ef92adda2070c7ef15473d9a10926f867e221271 /linux-user/syscall.c | |
parent | e3b9808535376bff99343c8a61726059a965198e (diff) |
linux-user sigaltstack() syscall, by Thayne Harbaugh.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3252 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r-- | linux-user/syscall.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 41d58da14f..5f1c804aaa 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -4318,7 +4318,14 @@ target_long do_syscall(void *cpu_env, int num, target_long arg1, case TARGET_NR_capset: goto unimplemented; case TARGET_NR_sigaltstack: +#if defined(TARGET_I386) || defined(TARGET_ARM) || defined(TARGET_SPARC) + ret = do_sigaltstack((struct target_sigaltstack *)arg1, + (struct target_sigaltstack *)arg2, + get_sp_from_cpustate((CPUState *)cpu_env)); + break; +#else goto unimplemented; +#endif case TARGET_NR_sendfile: goto unimplemented; #ifdef TARGET_NR_getpmsg |