Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
821d313c
Commit
821d313c
authored
Feb 27, 2007
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MIPS] Replace sys32_timer_create with the generic compat_sys_timer_create.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
08274cef
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
33 deletions
+2
-33
arch/mips/kernel/linux32.c
arch/mips/kernel/linux32.c
+0
-31
arch/mips/kernel/scall64-n32.S
arch/mips/kernel/scall64-n32.S
+1
-1
arch/mips/kernel/scall64-o32.S
arch/mips/kernel/scall64-o32.S
+1
-1
No files found.
arch/mips/kernel/linux32.c
View file @
821d313c
...
...
@@ -544,37 +544,6 @@ asmlinkage long sys32_sync_file_range(int fd, int __pad,
flags
);
}
struct
sigevent32
{
u32
sigev_value
;
u32
sigev_signo
;
u32
sigev_notify
;
u32
payload
[(
64
/
4
)
-
3
];
};
extern
asmlinkage
long
sys_timer_create
(
clockid_t
which_clock
,
struct
sigevent
__user
*
timer_event_spec
,
timer_t
__user
*
created_timer_id
);
long
sys32_timer_create
(
u32
clock
,
struct
sigevent32
__user
*
se32
,
timer_t
__user
*
timer_id
)
{
struct
sigevent
__user
*
p
=
NULL
;
if
(
se32
)
{
struct
sigevent
se
;
p
=
compat_alloc_user_space
(
sizeof
(
struct
sigevent
));
memset
(
&
se
,
0
,
sizeof
(
struct
sigevent
));
if
(
get_user
(
se
.
sigev_value
.
sival_int
,
&
se32
->
sigev_value
)
||
__get_user
(
se
.
sigev_signo
,
&
se32
->
sigev_signo
)
||
__get_user
(
se
.
sigev_notify
,
&
se32
->
sigev_notify
)
||
__copy_from_user
(
&
se
.
_sigev_un
.
_pad
,
&
se32
->
payload
,
sizeof
(
se32
->
payload
))
||
copy_to_user
(
p
,
&
se
,
sizeof
(
se
)))
return
-
EFAULT
;
}
return
sys_timer_create
(
clock
,
p
,
timer_id
);
}
save_static_function
(
sys32_clone
);
__attribute_used__
noinline
static
int
_sys32_clone
(
nabi_no_regargs
struct
pt_regs
regs
)
...
...
arch/mips/kernel/scall64-n32.S
View file @
821d313c
...
...
@@ -340,7 +340,7 @@ EXPORT(sysn32_call_table)
PTR
compat_sys_statfs64
PTR
compat_sys_fstatfs64
PTR
sys_sendfile64
PTR
sys32
_timer_create
/*
6220
*/
PTR
compat_sys
_timer_create
/*
6220
*/
PTR
compat_sys_timer_settime
PTR
compat_sys_timer_gettime
PTR
sys_timer_getoverrun
...
...
arch/mips/kernel/scall64-o32.S
View file @
821d313c
...
...
@@ -462,7 +462,7 @@ sys_call_table:
PTR
sys_fadvise64_64
PTR
compat_sys_statfs64
/*
4255
*/
PTR
compat_sys_fstatfs64
PTR
sys32
_timer_create
PTR
compat_sys
_timer_create
PTR
compat_sys_timer_settime
PTR
compat_sys_timer_gettime
PTR
sys_timer_getoverrun
/*
4260
*/
...
...
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