aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2010-07-16 08:01:16 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2010-07-16 08:01:16 -0500
commit08218b3527301760393b0b4ec732fcdfb7ff6cda (patch)
tree9e459205b70043b5f551ff873c4150d2f9c6584d
parentc84995c50b850ab4febc9f21c58a18ee712e7bed (diff)
parent187b4e08d37c5e6359c0537f79a04fffbc7357bd (diff)
Merge remote branch 'origin/master' into staging
-rw-r--r--linux-user/signal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-user/signal.c b/linux-user/signal.c
index e5a187e106..cc0cb10cd0 100644
--- a/linux-user/signal.c
+++ b/linux-user/signal.c
@@ -3213,7 +3213,8 @@ static void setup_frame(int sig, struct target_sigaction *ka,
env->regs[1] = (unsigned long) frame;
/* Signal handler args: */
env->regs[5] = sig; /* Arg 0: signum */
- env->regs[6] = (unsigned long) &frame->sc; /* arg 1: sigcontext */
+ env->regs[6] = 0;
+ env->regs[7] = (unsigned long) &frame->sc; /* arg 1: sigcontext */
/* Offset of 4 to handle microblaze rtid r14, 0 */
env->sregs[SR_PC] = (unsigned long)ka->_sa_handler;