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
586b148b
Commit
586b148b
authored
Jan 10, 2003
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: add get/put_compat_timespec from Stephen Rothwell
parent
bfaa30f1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
14 deletions
+5
-14
arch/ppc64/kernel/signal32.c
arch/ppc64/kernel/signal32.c
+4
-11
arch/ppc64/kernel/sys_ppc32.c
arch/ppc64/kernel/sys_ppc32.c
+1
-3
No files found.
arch/ppc64/kernel/signal32.c
View file @
586b148b
...
...
@@ -720,17 +720,10 @@ long sys32_rt_sigtimedwait(sigset32_t *uthese, siginfo_t32 *uinfo,
case
2
:
s
.
sig
[
1
]
=
s32
.
sig
[
2
]
|
(((
long
)
s32
.
sig
[
3
])
<<
32
);
case
1
:
s
.
sig
[
0
]
=
s32
.
sig
[
0
]
|
(((
long
)
s32
.
sig
[
1
])
<<
32
);
}
if
(
uts
)
{
ret
=
get_user
(
t
.
tv_sec
,
&
uts
->
tv_sec
);
ret
|=
__get_user
(
t
.
tv_nsec
,
&
uts
->
tv_nsec
);
if
(
ret
)
if
(
uts
&&
get_compat_timespec
(
&
t
,
uts
))
return
-
EFAULT
;
}
set_fs
(
KERNEL_DS
);
if
(
uts
)
ret
=
sys_rt_sigtimedwait
(
&
s
,
&
info
,
&
t
,
sigsetsize
);
else
ret
=
sys_rt_sigtimedwait
(
&
s
,
&
info
,
(
struct
timespec
*
)
uts
,
ret
=
sys_rt_sigtimedwait
(
&
s
,
uinfo
?
&
info
:
NULL
,
uts
?
&
t
:
NULL
,
sigsetsize
);
set_fs
(
old_fs
);
if
(
ret
>=
0
&&
uinfo
)
{
...
...
arch/ppc64/kernel/sys_ppc32.c
View file @
586b148b
...
...
@@ -3603,10 +3603,8 @@ asmlinkage int sys32_sched_rr_get_interval(u32 pid, struct compat_timespec *inte
set_fs
(
KERNEL_DS
);
ret
=
sys_sched_rr_get_interval
((
int
)
pid
,
&
t
);
set_fs
(
old_fs
);
if
(
put_user
(
t
.
tv_sec
,
&
interval
->
tv_sec
)
||
__put_user
(
t
.
tv_nsec
,
&
interval
->
tv_nsec
))
if
(
put_compat_timespec
(
&
t
,
interval
))
return
-
EFAULT
;
return
ret
;
}
...
...
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