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
ac416143
Commit
ac416143
authored
Nov 14, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h8300: kill useless wrappers, fix rt_sigreturn(2)
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
6bc43c9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
23 deletions
+6
-23
arch/h8300/kernel/signal.c
arch/h8300/kernel/signal.c
+6
-8
arch/h8300/kernel/syscalls.S
arch/h8300/kernel/syscalls.S
+0
-15
No files found.
arch/h8300/kernel/signal.c
View file @
ac416143
...
...
@@ -129,9 +129,9 @@ struct rt_sigframe
}
__attribute__
((
aligned
(
2
),
packed
));
static
inline
int
restore_sigcontext
(
struct
pt_regs
*
regs
,
struct
sigcontext
*
usc
,
int
*
pd0
)
restore_sigcontext
(
struct
sigcontext
*
usc
,
int
*
pd0
)
{
struct
pt_regs
*
regs
=
current_pt_regs
();
int
err
=
0
;
unsigned
int
ccr
;
unsigned
int
usp
;
...
...
@@ -160,9 +160,8 @@ restore_sigcontext(struct pt_regs *regs, struct sigcontext *usc,
return
err
;
}
asmlinkage
int
do_sigreturn
(
unsigned
long
__unused
,...
)
asmlinkage
int
sys_sigreturn
(
void
)
{
struct
pt_regs
*
regs
=
(
struct
pt_regs
*
)
(
&
__unused
-
1
);
unsigned
long
usp
=
rdusp
();
struct
sigframe
*
frame
=
(
struct
sigframe
*
)(
usp
-
4
);
sigset_t
set
;
...
...
@@ -178,7 +177,7 @@ asmlinkage int do_sigreturn(unsigned long __unused,...)
set_current_blocked
(
&
set
);
if
(
restore_sigcontext
(
regs
,
&
frame
->
sc
,
&
er0
))
if
(
restore_sigcontext
(
&
frame
->
sc
,
&
er0
))
goto
badframe
;
return
er0
;
...
...
@@ -187,9 +186,8 @@ asmlinkage int do_sigreturn(unsigned long __unused,...)
return
0
;
}
asmlinkage
int
do_rt_sigreturn
(
unsigned
long
__unused
,...
)
asmlinkage
int
sys_rt_sigreturn
(
void
)
{
struct
pt_regs
*
regs
=
(
struct
pt_regs
*
)
&
__unused
;
unsigned
long
usp
=
rdusp
();
struct
rt_sigframe
*
frame
=
(
struct
rt_sigframe
*
)(
usp
-
4
);
sigset_t
set
;
...
...
@@ -202,7 +200,7 @@ asmlinkage int do_rt_sigreturn(unsigned long __unused,...)
set_current_blocked
(
&
set
);
if
(
restore_sigcontext
(
regs
,
&
frame
->
uc
.
uc_mcontext
,
&
er0
))
if
(
restore_sigcontext
(
&
frame
->
uc
.
uc_mcontext
,
&
er0
))
goto
badframe
;
if
(
restore_altstack
(
&
frame
->
uc
.
uc_stack
))
...
...
arch/h8300/kernel/syscalls.S
View file @
ac416143
...
...
@@ -334,18 +334,3 @@ SYMBOL_NAME_LABEL(sys_call_table)
.
long
SYMBOL_NAME
(
sys_getcpu
)
.
long
SYMBOL_NAME
(
sys_ni_syscall
)
/*
sys_epoll_pwait
*/
.
long
SYMBOL_NAME
(
sys_setns
)
/*
320
*/
.
macro
call_sp
addr
mov.l
#
SYMBOL_NAME
(
\
addr
),
er6
bra
SYMBOL_NAME
(
syscall_trampoline
):
8
.
endm
SYMBOL_NAME_LABEL
(
sys_sigreturn
)
call_sp
do_sigreturn
SYMBOL_NAME_LABEL
(
sys_rt_sigreturn
)
call_sp
do_rt_sigreturn
SYMBOL_NAME_LABEL
(
syscall_trampoline
)
mov.l
sp
,
er0
jmp
@
er6
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