Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
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
Commits
4dc46775
Commit
4dc46775
authored
Jul 26, 2007
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MIPS] Wire up the fallocate syscall.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
293c5bd1
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
6 deletions
+20
-6
arch/mips/kernel/linux32.c
arch/mips/kernel/linux32.c
+7
-0
arch/mips/kernel/scall32-o32.S
arch/mips/kernel/scall32-o32.S
+1
-0
arch/mips/kernel/scall64-64.S
arch/mips/kernel/scall64-64.S
+1
-0
arch/mips/kernel/scall64-n32.S
arch/mips/kernel/scall64-n32.S
+1
-0
arch/mips/kernel/scall64-o32.S
arch/mips/kernel/scall64-o32.S
+1
-0
include/asm-mips/unistd.h
include/asm-mips/unistd.h
+9
-6
No files found.
arch/mips/kernel/linux32.c
View file @
4dc46775
...
@@ -566,6 +566,13 @@ asmlinkage long sys32_fadvise64_64(int fd, int __pad,
...
@@ -566,6 +566,13 @@ asmlinkage long sys32_fadvise64_64(int fd, int __pad,
flags
);
flags
);
}
}
asmlinkage
long
sys32_fallocate
(
int
fd
,
int
mode
,
unsigned
offset_a2
,
unsigned
offset_a3
,
unsigned
len_a4
,
unsigned
len_a5
)
{
return
sys_fallocate
(
fd
,
mode
,
merge_64
(
offset_a2
,
offset_a3
),
merge_64
(
len_a4
,
len_a5
));
}
save_static_function
(
sys32_clone
);
save_static_function
(
sys32_clone
);
static
int
noinline
__used
static
int
noinline
__used
_sys32_clone
(
nabi_no_regargs
struct
pt_regs
regs
)
_sys32_clone
(
nabi_no_regargs
struct
pt_regs
regs
)
...
...
arch/mips/kernel/scall32-o32.S
View file @
4dc46775
...
@@ -662,6 +662,7 @@ einval: li v0, -EINVAL
...
@@ -662,6 +662,7 @@ einval: li v0, -EINVAL
sys
sys_signalfd
3
sys
sys_signalfd
3
sys
sys_timerfd
4
sys
sys_timerfd
4
sys
sys_eventfd
1
sys
sys_eventfd
1
sys
sys_fallocate
6
/*
4320
*/
.
endm
.
endm
/
*
We
pre
-
compute
the
number
of
_instruction_
bytes
needed
to
/
*
We
pre
-
compute
the
number
of
_instruction_
bytes
needed
to
...
...
arch/mips/kernel/scall64-64.S
View file @
4dc46775
...
@@ -477,4 +477,5 @@ sys_call_table:
...
@@ -477,4 +477,5 @@ sys_call_table:
PTR
sys_signalfd
PTR
sys_signalfd
PTR
sys_timerfd
PTR
sys_timerfd
PTR
sys_eventfd
PTR
sys_eventfd
PTR
sys_fallocate
.
size
sys_call_table
,
.
-
sys_call_table
.
size
sys_call_table
,
.
-
sys_call_table
arch/mips/kernel/scall64-n32.S
View file @
4dc46775
...
@@ -403,4 +403,5 @@ EXPORT(sysn32_call_table)
...
@@ -403,4 +403,5 @@ EXPORT(sysn32_call_table)
PTR
compat_sys_signalfd
/*
5280
*/
PTR
compat_sys_signalfd
/*
5280
*/
PTR
compat_sys_timerfd
PTR
compat_sys_timerfd
PTR
sys_eventfd
PTR
sys_eventfd
PTR
sys_fallocate
.
size
sysn32_call_table
,
.
-
sysn32_call_table
.
size
sysn32_call_table
,
.
-
sysn32_call_table
arch/mips/kernel/scall64-o32.S
View file @
4dc46775
...
@@ -525,4 +525,5 @@ sys_call_table:
...
@@ -525,4 +525,5 @@ sys_call_table:
PTR
compat_sys_signalfd
PTR
compat_sys_signalfd
PTR
compat_sys_timerfd
PTR
compat_sys_timerfd
PTR
sys_eventfd
PTR
sys_eventfd
PTR
sys_fallocate
/*
4320
*/
.
size
sys_call_table
,
.
-
sys_call_table
.
size
sys_call_table
,
.
-
sys_call_table
include/asm-mips/unistd.h
View file @
4dc46775
...
@@ -340,16 +340,17 @@
...
@@ -340,16 +340,17 @@
#define __NR_signalfd (__NR_Linux + 317)
#define __NR_signalfd (__NR_Linux + 317)
#define __NR_timerfd (__NR_Linux + 318)
#define __NR_timerfd (__NR_Linux + 318)
#define __NR_eventfd (__NR_Linux + 319)
#define __NR_eventfd (__NR_Linux + 319)
#define __NR_fallocate (__NR_Linux + 320)
/*
/*
* Offset of the last Linux o32 flavoured syscall
* Offset of the last Linux o32 flavoured syscall
*/
*/
#define __NR_Linux_syscalls 3
19
#define __NR_Linux_syscalls 3
20
#endif
/* _MIPS_SIM == _MIPS_SIM_ABI32 */
#endif
/* _MIPS_SIM == _MIPS_SIM_ABI32 */
#define __NR_O32_Linux 4000
#define __NR_O32_Linux 4000
#define __NR_O32_Linux_syscalls 3
19
#define __NR_O32_Linux_syscalls 3
20
#if _MIPS_SIM == _MIPS_SIM_ABI64
#if _MIPS_SIM == _MIPS_SIM_ABI64
...
@@ -636,16 +637,17 @@
...
@@ -636,16 +637,17 @@
#define __NR_signalfd (__NR_Linux + 276)
#define __NR_signalfd (__NR_Linux + 276)
#define __NR_timerfd (__NR_Linux + 277)
#define __NR_timerfd (__NR_Linux + 277)
#define __NR_eventfd (__NR_Linux + 278)
#define __NR_eventfd (__NR_Linux + 278)
#define __NR_fallocate (__NR_Linux + 279)
/*
/*
* Offset of the last Linux 64-bit flavoured syscall
* Offset of the last Linux 64-bit flavoured syscall
*/
*/
#define __NR_Linux_syscalls 27
8
#define __NR_Linux_syscalls 27
9
#endif
/* _MIPS_SIM == _MIPS_SIM_ABI64 */
#endif
/* _MIPS_SIM == _MIPS_SIM_ABI64 */
#define __NR_64_Linux 5000
#define __NR_64_Linux 5000
#define __NR_64_Linux_syscalls 27
8
#define __NR_64_Linux_syscalls 27
9
#if _MIPS_SIM == _MIPS_SIM_NABI32
#if _MIPS_SIM == _MIPS_SIM_NABI32
...
@@ -936,16 +938,17 @@
...
@@ -936,16 +938,17 @@
#define __NR_signalfd (__NR_Linux + 280)
#define __NR_signalfd (__NR_Linux + 280)
#define __NR_timerfd (__NR_Linux + 281)
#define __NR_timerfd (__NR_Linux + 281)
#define __NR_eventfd (__NR_Linux + 282)
#define __NR_eventfd (__NR_Linux + 282)
#define __NR_fallocate (__NR_Linux + 283)
/*
/*
* Offset of the last N32 flavoured syscall
* Offset of the last N32 flavoured syscall
*/
*/
#define __NR_Linux_syscalls 28
2
#define __NR_Linux_syscalls 28
3
#endif
/* _MIPS_SIM == _MIPS_SIM_NABI32 */
#endif
/* _MIPS_SIM == _MIPS_SIM_NABI32 */
#define __NR_N32_Linux 6000
#define __NR_N32_Linux 6000
#define __NR_N32_Linux_syscalls 28
2
#define __NR_N32_Linux_syscalls 28
3
#ifdef __KERNEL__
#ifdef __KERNEL__
...
...
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