Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
ddaebcab
Commit
ddaebcab
authored
Jan 29, 2010
by
Mike Frysinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Blackfin: add support for restart_syscall()
Signed-off-by:
Mike Frysinger
<
vapier@gentoo.org
>
parent
9e228ee9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
arch/blackfin/kernel/signal.c
arch/blackfin/kernel/signal.c
+9
-0
No files found.
arch/blackfin/kernel/signal.c
View file @
ddaebcab
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
#include <asm/cacheflush.h>
#include <asm/cacheflush.h>
#include <asm/ucontext.h>
#include <asm/ucontext.h>
#include <asm/fixed_code.h>
#include <asm/fixed_code.h>
#include <asm/syscall.h>
#define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP)))
#define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP)))
...
@@ -50,6 +51,9 @@ rt_restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, int *p
...
@@ -50,6 +51,9 @@ rt_restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, int *p
unsigned
long
usp
=
0
;
unsigned
long
usp
=
0
;
int
err
=
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)
#define RESTORE(x) err |= __get_user(regs->x, &sc->sc_##x)
/* restore passed registers */
/* restore passed registers */
...
@@ -237,6 +241,11 @@ handle_restart(struct pt_regs *regs, struct k_sigaction *ka, int has_handler)
...
@@ -237,6 +241,11 @@ handle_restart(struct pt_regs *regs, struct k_sigaction *ka, int has_handler)
regs
->
r0
=
regs
->
orig_r0
;
regs
->
r0
=
regs
->
orig_r0
;
regs
->
pc
-=
2
;
regs
->
pc
-=
2
;
break
;
break
;
case
-
ERESTART_RESTARTBLOCK
:
regs
->
p0
=
__NR_restart_syscall
;
regs
->
pc
-=
2
;
break
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment