qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 6/7] alpha-linux-user: Fix sigsuspend parameters.


From: Richard Henderson
Subject: [Qemu-devel] [PATCH 6/7] alpha-linux-user: Fix sigsuspend parameters.
Date: Mon, 3 May 2010 10:07:54 -0700

Alpha passes the signal set in a register, not by reference.

Signed-off-by: Richard Henderson <address@hidden>
---
 linux-user/syscall.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 8a6cbaf..899b76f 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -5072,10 +5072,15 @@ abi_long do_syscall(void *cpu_env, int num, abi_long 
arg1,
     case TARGET_NR_sigsuspend:
         {
             sigset_t set;
+#if defined(TARGET_ALPHA)
+            abi_ulong mask = arg1;
+            target_to_host_old_sigset(&set, &mask);
+#else
             if (!(p = lock_user(VERIFY_READ, arg1, sizeof(target_sigset_t), 
1)))
                 goto efault;
             target_to_host_old_sigset(&set, p);
             unlock_user(p, arg1, 0);
+#endif
             ret = get_errno(sigsuspend(&set));
         }
         break;
-- 
1.6.6.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]