Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211009
b: refs/heads/master
c: 00cbf60
h: refs/heads/master
i:
  211007: cd26554
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Sep 27, 2010
1 parent c0ec3fc commit 7b4bd48
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 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: e46924d246e028c94689087db0699438343a344e
refs/heads/master: 00cbf6080c7d60b999864afcd9010e0bbc7c5db6
12 changes: 9 additions & 3 deletions trunk/arch/mn10300/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,12 @@ static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
return -EFAULT;
}

static inline void stepback(struct pt_regs *regs)
{
regs->pc -= 2;
regs->orig_d0 = -1;
}

/*
* handle the actual delivery of a signal to userspace
*/
Expand Down Expand Up @@ -459,7 +465,7 @@ static int handle_signal(int sig,
/* fallthrough */
case -ERESTARTNOINTR:
regs->d0 = regs->orig_d0;
regs->pc -= 2;
stepback(regs);
}
}

Expand Down Expand Up @@ -527,12 +533,12 @@ static void do_signal(struct pt_regs *regs)
case -ERESTARTSYS:
case -ERESTARTNOINTR:
regs->d0 = regs->orig_d0;
regs->pc -= 2;
stepback(regs);
break;

case -ERESTART_RESTARTBLOCK:
regs->d0 = __NR_restart_syscall;
regs->pc -= 2;
stepback(regs);
break;
}
}
Expand Down

0 comments on commit 7b4bd48

Please sign in to comment.