Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 85943
b: refs/heads/master
c: 44c64e6
h: refs/heads/master
i:
  85941: 805b4a3
  85939: 001f1ff
  85935: 7b1c0cd
v: v3
  • Loading branch information
Chris Zankel committed Feb 14, 2008
1 parent 51a8b0a commit c68a2d6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c658eac628aa8df040dfe614556d95e6da3a9ffb
refs/heads/master: 44c64e6b15ceab6a4927f54e1081a74ba096b95a
16 changes: 10 additions & 6 deletions trunk/arch/xtensa/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,14 +381,19 @@ static void setup_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
err |= setup_sigcontext(frame, regs);
err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set));

/* Create sys_rt_sigreturn syscall in stack frame */
if (ka->sa.sa_flags & SA_RESTORER) {
ra = (unsigned long)ka->sa.sa_restorer;
} else {

err |= gen_return_code(frame->retcode);
/* Create sys_rt_sigreturn syscall in stack frame */

if (err) {
goto give_sigsegv;
err |= gen_return_code(frame->retcode);

if (err) {
goto give_sigsegv;
}
ra = (unsigned long) frame->retcode;
}


/*
* Create signal handler execution context.
Expand All @@ -402,7 +407,6 @@ static void setup_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
/* Set up a stack frame for a call4
* Note: PS.CALLINC is set to one by start_thread
*/
ra = (unsigned long) frame->retcode;
regs->areg[4] = (((unsigned long) ra) & 0x3fffffff) | 0x40000000;
regs->areg[6] = (unsigned long) signal;
regs->areg[7] = (unsigned long) &frame->info;
Expand Down

0 comments on commit c68a2d6

Please sign in to comment.