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
5aa1cde2
Commit
5aa1cde2
authored
Dec 25, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
powerpc: switch to generic compat rt_sigaction()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
a31dd96f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
39 deletions
+1
-39
arch/powerpc/Kconfig
arch/powerpc/Kconfig
+1
-0
arch/powerpc/kernel/ppc32.h
arch/powerpc/kernel/ppc32.h
+0
-9
arch/powerpc/kernel/signal_32.c
arch/powerpc/kernel/signal_32.c
+0
-30
No files found.
arch/powerpc/Kconfig
View file @
5aa1cde2
...
...
@@ -145,6 +145,7 @@ config PPC
select MODULES_USE_ELF_RELA
select CLONE_BACKWARDS
select GENERIC_SIGALTSTACK
select GENERIC_COMPAT_RT_SIGACTION
select GENERIC_COMPAT_RT_SIGQUEUEINFO
select GENERIC_COMPAT_RT_SIGPROCMASK
select GENERIC_COMPAT_RT_SIGPENDING
...
...
arch/powerpc/kernel/ppc32.h
View file @
5aa1cde2
...
...
@@ -25,15 +25,6 @@ struct __old_sigaction32 {
compat_uptr_t
sa_restorer
;
/* not used by Linux/SPARC yet */
};
struct
sigaction32
{
compat_uptr_t
sa_handler
;
/* Really a pointer, but need to deal with 32 bits */
unsigned
int
sa_flags
;
compat_uptr_t
sa_restorer
;
/* Another 32 bit pointer */
compat_sigset_t
sa_mask
;
/* A 32 bit mask */
};
struct
pt_regs32
{
unsigned
int
gpr
[
32
];
unsigned
int
nip
;
...
...
arch/powerpc/kernel/signal_32.c
View file @
5aa1cde2
...
...
@@ -579,36 +579,6 @@ static long restore_user_regs(struct pt_regs *regs,
}
#ifdef CONFIG_PPC64
long
compat_sys_rt_sigaction
(
int
sig
,
const
struct
sigaction32
__user
*
act
,
struct
sigaction32
__user
*
oact
,
size_t
sigsetsize
)
{
struct
k_sigaction
new_ka
,
old_ka
;
int
ret
;
/* XXX: Don't preclude handling different sized sigset_t's. */
if
(
sigsetsize
!=
sizeof
(
compat_sigset_t
))
return
-
EINVAL
;
if
(
act
)
{
compat_uptr_t
handler
;
ret
=
get_user
(
handler
,
&
act
->
sa_handler
);
new_ka
.
sa
.
sa_handler
=
compat_ptr
(
handler
);
ret
|=
get_sigset_t
(
&
new_ka
.
sa
.
sa_mask
,
&
act
->
sa_mask
);
ret
|=
__get_user
(
new_ka
.
sa
.
sa_flags
,
&
act
->
sa_flags
);
if
(
ret
)
return
-
EFAULT
;
}
ret
=
do_sigaction
(
sig
,
act
?
&
new_ka
:
NULL
,
oact
?
&
old_ka
:
NULL
);
if
(
!
ret
&&
oact
)
{
ret
=
put_user
(
to_user_ptr
(
old_ka
.
sa
.
sa_handler
),
&
oact
->
sa_handler
);
ret
|=
put_sigset_t
(
&
oact
->
sa_mask
,
&
old_ka
.
sa
.
sa_mask
);
ret
|=
__put_user
(
old_ka
.
sa
.
sa_flags
,
&
oact
->
sa_flags
);
}
return
ret
;
}
int
copy_siginfo_to_user32
(
struct
compat_siginfo
__user
*
d
,
siginfo_t
*
s
)
{
int
err
;
...
...
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