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
b960f303
Commit
b960f303
authored
Oct 18, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alpha: don't pass useless arguments to do_{,rt_},sigreturn()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
e0e431aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
12 deletions
+8
-12
arch/alpha/kernel/entry.S
arch/alpha/kernel/entry.S
+0
-4
arch/alpha/kernel/signal.c
arch/alpha/kernel/signal.c
+8
-8
No files found.
arch/alpha/kernel/entry.S
View file @
b960f303
...
@@ -658,8 +658,6 @@ sys_sigreturn:
...
@@ -658,8 +658,6 @@ sys_sigreturn:
.
prologue
0
.
prologue
0
lda
$
9
,
ret_from_straced
lda
$
9
,
ret_from_straced
cmpult
$
26
,
$
9
,
$
9
cmpult
$
26
,
$
9
,
$
9
mov
$sp
,
$
17
lda
$
18
,
-
SWITCH_STACK_SIZE
(
$sp
)
lda
$sp
,
-
SWITCH_STACK_SIZE
(
$sp
)
lda
$sp
,
-
SWITCH_STACK_SIZE
(
$sp
)
jsr
$
26
,
do_sigreturn
jsr
$
26
,
do_sigreturn
bne
$
9
,
1
f
bne
$
9
,
1
f
...
@@ -675,8 +673,6 @@ sys_rt_sigreturn:
...
@@ -675,8 +673,6 @@ sys_rt_sigreturn:
.
prologue
0
.
prologue
0
lda
$
9
,
ret_from_straced
lda
$
9
,
ret_from_straced
cmpult
$
26
,
$
9
,
$
9
cmpult
$
26
,
$
9
,
$
9
mov
$sp
,
$
17
lda
$
18
,
-
SWITCH_STACK_SIZE
(
$sp
)
lda
$sp
,
-
SWITCH_STACK_SIZE
(
$sp
)
lda
$sp
,
-
SWITCH_STACK_SIZE
(
$sp
)
jsr
$
26
,
do_rt_sigreturn
jsr
$
26
,
do_rt_sigreturn
bne
$
9
,
1
f
bne
$
9
,
1
f
...
...
arch/alpha/kernel/signal.c
View file @
b960f303
...
@@ -160,10 +160,10 @@ extern char compile_time_assert
...
@@ -160,10 +160,10 @@ extern char compile_time_assert
#define INSN_CALLSYS 0x00000083
#define INSN_CALLSYS 0x00000083
static
long
static
long
restore_sigcontext
(
struct
sigcontext
__user
*
sc
,
struct
pt_regs
*
regs
,
restore_sigcontext
(
struct
sigcontext
__user
*
sc
,
struct
pt_regs
*
regs
)
struct
switch_stack
*
sw
)
{
{
unsigned
long
usp
;
unsigned
long
usp
;
struct
switch_stack
*
sw
=
(
struct
switch_stack
*
)
regs
-
1
;
long
i
,
err
=
__get_user
(
regs
->
pc
,
&
sc
->
sc_pc
);
long
i
,
err
=
__get_user
(
regs
->
pc
,
&
sc
->
sc_pc
);
current_thread_info
()
->
restart_block
.
fn
=
do_no_restart_syscall
;
current_thread_info
()
->
restart_block
.
fn
=
do_no_restart_syscall
;
...
@@ -215,9 +215,9 @@ restore_sigcontext(struct sigcontext __user *sc, struct pt_regs *regs,
...
@@ -215,9 +215,9 @@ restore_sigcontext(struct sigcontext __user *sc, struct pt_regs *regs,
registers and transfer control from userland. */
registers and transfer control from userland. */
asmlinkage
void
asmlinkage
void
do_sigreturn
(
struct
sigcontext
__user
*
sc
,
struct
pt_regs
*
regs
,
do_sigreturn
(
struct
sigcontext
__user
*
sc
)
struct
switch_stack
*
sw
)
{
{
struct
pt_regs
*
regs
=
current_pt_regs
();
sigset_t
set
;
sigset_t
set
;
/* Verify that it's a good sigcontext before using it */
/* Verify that it's a good sigcontext before using it */
...
@@ -228,7 +228,7 @@ do_sigreturn(struct sigcontext __user *sc, struct pt_regs *regs,
...
@@ -228,7 +228,7 @@ do_sigreturn(struct sigcontext __user *sc, struct pt_regs *regs,
set_current_blocked
(
&
set
);
set_current_blocked
(
&
set
);
if
(
restore_sigcontext
(
sc
,
regs
,
sw
))
if
(
restore_sigcontext
(
sc
,
regs
))
goto
give_sigsegv
;
goto
give_sigsegv
;
/* Send SIGTRAP if we're single-stepping: */
/* Send SIGTRAP if we're single-stepping: */
...
@@ -249,9 +249,9 @@ do_sigreturn(struct sigcontext __user *sc, struct pt_regs *regs,
...
@@ -249,9 +249,9 @@ do_sigreturn(struct sigcontext __user *sc, struct pt_regs *regs,
}
}
asmlinkage
void
asmlinkage
void
do_rt_sigreturn
(
struct
rt_sigframe
__user
*
frame
,
struct
pt_regs
*
regs
,
do_rt_sigreturn
(
struct
rt_sigframe
__user
*
frame
)
struct
switch_stack
*
sw
)
{
{
struct
pt_regs
*
regs
=
current_pt_regs
();
sigset_t
set
;
sigset_t
set
;
/* Verify that it's a good ucontext_t before using it */
/* Verify that it's a good ucontext_t before using it */
...
@@ -262,7 +262,7 @@ do_rt_sigreturn(struct rt_sigframe __user *frame, struct pt_regs *regs,
...
@@ -262,7 +262,7 @@ do_rt_sigreturn(struct rt_sigframe __user *frame, struct pt_regs *regs,
set_current_blocked
(
&
set
);
set_current_blocked
(
&
set
);
if
(
restore_sigcontext
(
&
frame
->
uc
.
uc_mcontext
,
regs
,
sw
))
if
(
restore_sigcontext
(
&
frame
->
uc
.
uc_mcontext
,
regs
))
goto
give_sigsegv
;
goto
give_sigsegv
;
/* Send SIGTRAP if we're single-stepping: */
/* Send SIGTRAP if we're single-stepping: */
...
...
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