Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188511
b: refs/heads/master
c: ddaebca
h: refs/heads/master
i:
  188509: 8881b2d
  188507: 3fbac3e
  188503: f50f782
  188495: 6763623
  188479: 4dddfed
v: v3
  • Loading branch information
Mike Frysinger committed Mar 9, 2010
1 parent def188d commit b854c30
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9e228ee9eae97b533d3b3133f76478c70dbd4294
refs/heads/master: ddaebcabbc18811ac4ac6e84fb9c327e8393a1dc
9 changes: 9 additions & 0 deletions trunk/arch/blackfin/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <asm/cacheflush.h>
#include <asm/ucontext.h>
#include <asm/fixed_code.h>
#include <asm/syscall.h>

#define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP)))

Expand Down Expand Up @@ -50,6 +51,9 @@ rt_restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, int *p
unsigned long usp = 0;
int err = 0;

/* Always make any pending restarted system calls return -EINTR */
current_thread_info()->restart_block.fn = do_no_restart_syscall;

#define RESTORE(x) err |= __get_user(regs->x, &sc->sc_##x)

/* restore passed registers */
Expand Down Expand Up @@ -237,6 +241,11 @@ handle_restart(struct pt_regs *regs, struct k_sigaction *ka, int has_handler)
regs->r0 = regs->orig_r0;
regs->pc -= 2;
break;

case -ERESTART_RESTARTBLOCK:
regs->p0 = __NR_restart_syscall;
regs->pc -= 2;
break;
}
}

Expand Down

0 comments on commit b854c30

Please sign in to comment.