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
Kirill Smelkov
linux
Commits
b340b81a
Commit
b340b81a
authored
Nov 03, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC]: Add sys_remap_file_pages syscalls.
parent
b9be38f1
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
5 deletions
+20
-5
arch/sparc/kernel/sys_sparc.c
arch/sparc/kernel/sys_sparc.c
+15
-0
arch/sparc/kernel/systbls.S
arch/sparc/kernel/systbls.S
+1
-1
arch/sparc64/kernel/systbls.S
arch/sparc64/kernel/systbls.S
+2
-2
include/asm-sparc/unistd.h
include/asm-sparc/unistd.h
+1
-1
include/asm-sparc64/unistd.h
include/asm-sparc64/unistd.h
+1
-1
No files found.
arch/sparc/kernel/sys_sparc.c
View file @
b340b81a
...
...
@@ -269,6 +269,21 @@ asmlinkage unsigned long sys_mmap(unsigned long addr, unsigned long len,
return
do_mmap2
(
addr
,
len
,
prot
,
flags
,
fd
,
off
>>
PAGE_SHIFT
);
}
extern
int
sys_remap_file_pages
(
unsigned
long
start
,
unsigned
long
size
,
unsigned
long
prot
,
unsigned
long
pgoff
,
unsigned
long
flags
);
int
sparc_remap_file_pages
(
unsigned
long
start
,
unsigned
long
size
,
unsigned
long
prot
,
unsigned
long
pgoff
,
unsigned
long
flags
)
{
/* This works on an existing mmap so we don't need to validate
* the range as that was done at the original mmap call.
*/
return
sys_remap_file_pages
(
start
,
size
,
prot
,
(
pgoff
>>
(
PAGE_SHIFT
-
12
)),
flags
);
}
extern
unsigned
long
do_mremap
(
unsigned
long
addr
,
unsigned
long
old_len
,
unsigned
long
new_len
,
unsigned
long
flags
,
unsigned
long
new_addr
);
...
...
arch/sparc/kernel/systbls.S
View file @
b340b81a
...
...
@@ -56,7 +56,7 @@ sys_call_table:
/*
175
*/
.
long
sys_setsid
,
sys_fchdir
,
sys_fgetxattr
,
sys_listxattr
,
sys_llistxattr
/*
180
*/
.
long
sys_flistxattr
,
sys_removexattr
,
sys_lremovexattr
,
sys_sigpending
,
sys_query_module
/*
185
*/
.
long
sys_setpgid
,
sys_fremovexattr
,
sys_tkill
,
sys_exit_group
,
sys_newuname
/*
190
*/
.
long
sys_init_module
,
sys_personality
,
s
ys_nis_syscall
,
sys_nis_syscall
,
sys_nis_syscall
/*
190
*/
.
long
sys_init_module
,
sys_personality
,
s
parc_remap_file_pages
,
sys_nis_syscall
,
sys_nis_syscall
/*
195
*/
.
long
sys_nis_syscall
,
sys_nis_syscall
,
sys_getppid
,
sparc_sigaction
,
sys_sgetmask
/*
200
*/
.
long
sys_ssetmask
,
sys_sigsuspend
,
sys_newlstat
,
sys_uselib
,
old_readdir
/*
205
*/
.
long
sys_readahead
,
sys_socketcall
,
sys_syslog
,
sys_lookup_dcookie
,
sys_nis_syscall
...
...
arch/sparc64/kernel/systbls.S
View file @
b340b81a
...
...
@@ -57,7 +57,7 @@ sys_call_table32:
.
word
sys_setsid
,
sys_fchdir
,
sys_fgetxattr
,
sys_listxattr
,
sys_llistxattr
/*
180
*/
.
word
sys_flistxattr
,
sys_removexattr
,
sys_lremovexattr
,
sys32_sigpending
,
sys32_query_module
.
word
sys_setpgid
,
sys_fremovexattr
,
sys_tkill
,
sys_exit_group
,
sparc64_newuname
/*
190
*/
.
word
sys32_init_module
,
sparc64_personality
,
sys_
nis_syscall
,
sys_nis_syscall
,
sys_nis_syscall
/*
190
*/
.
word
sys32_init_module
,
sparc64_personality
,
sys_
remap_file_pages
,
sys_nis_syscall
,
sys_nis_syscall
.
word
sys_nis_syscall
,
sys_nis_syscall
,
sys_getppid
,
sys32_sigaction
,
sys_sgetmask
/*
200
*/
.
word
sys_ssetmask
,
sys_sigsuspend
,
sys32_newlstat
,
sys_uselib
,
old32_readdir
.
word
sys32_readahead
,
sys32_socketcall
,
sys_syslog
,
sys_lookup_dcookie
,
sys_nis_syscall
...
...
@@ -116,7 +116,7 @@ sys_call_table:
.
word
sys_setsid
,
sys_fchdir
,
sys_fgetxattr
,
sys_listxattr
,
sys_llistxattr
/*
180
*/
.
word
sys_flistxattr
,
sys_removexattr
,
sys_lremovexattr
,
sys_nis_syscall
,
sys_query_module
.
word
sys_setpgid
,
sys_fremovexattr
,
sys_tkill
,
sys_exit_group
,
sparc64_newuname
/*
190
*/
.
word
sys_init_module
,
sparc64_personality
,
sys_
nis_syscall
,
sys_nis_syscall
,
sys_nis_syscall
/*
190
*/
.
word
sys_init_module
,
sparc64_personality
,
sys_
remap_file_pages
,
sys_nis_syscall
,
sys_nis_syscall
.
word
sys_nis_syscall
,
sys_nis_syscall
,
sys_getppid
,
sys_nis_syscall
,
sys_sgetmask
/*
200
*/
.
word
sys_ssetmask
,
sys_nis_syscall
,
sys_newlstat
,
sys_uselib
,
sys_nis_syscall
.
word
sys_readahead
,
sys_socketcall
,
sys_syslog
,
sys_lookup_dcookie
,
sys_nis_syscall
...
...
include/asm-sparc/unistd.h
View file @
b340b81a
...
...
@@ -207,7 +207,7 @@
#define __NR_uname 189
/* Linux Specific */
#define __NR_init_module 190
/* Linux Specific */
#define __NR_personality 191
/* Linux Specific */
/* #define __NR_prof 192
Linux Specific */
#define __NR_remap_file_pages 192
/*
Linux Specific */
/* #define __NR_break 193 Linux Specific */
/* #define __NR_lock 194 Linux Specific */
/* #define __NR_mpx 195 Linux Specific */
...
...
include/asm-sparc64/unistd.h
View file @
b340b81a
...
...
@@ -207,7 +207,7 @@
#define __NR_uname 189
/* Linux Specific */
#define __NR_init_module 190
/* Linux Specific */
#define __NR_personality 191
/* Linux Specific */
/* #define __NR_prof 192
Linux Specific */
#define __NR_remap_file_pages 192
/*
Linux Specific */
/* #define __NR_break 193 Linux Specific */
/* #define __NR_lock 194 Linux Specific */
/* #define __NR_mpx 195 Linux Specific */
...
...
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