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
a0d32ad3
Commit
a0d32ad3
authored
Mar 19, 2018
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch sparc_remap_file_pages() to SYSCALL_DEFINE
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
6de7617e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
arch/sparc/kernel/sys_sparc_32.c
arch/sparc/kernel/sys_sparc_32.c
+3
-3
arch/sparc/kernel/systbls.h
arch/sparc/kernel/systbls.h
+1
-1
arch/sparc/kernel/systbls_32.S
arch/sparc/kernel/systbls_32.S
+1
-1
No files found.
arch/sparc/kernel/sys_sparc_32.c
View file @
a0d32ad3
...
...
@@ -116,9 +116,9 @@ SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len,
return
sys_mmap_pgoff
(
addr
,
len
,
prot
,
flags
,
fd
,
off
>>
PAGE_SHIFT
);
}
long
sparc_remap_file_pages
(
unsigned
long
start
,
unsigned
long
size
,
unsigned
long
prot
,
unsigned
long
pgoff
,
unsigned
long
flags
)
SYSCALL_DEFINE5
(
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.
...
...
arch/sparc/kernel/systbls.h
View file @
a0d32ad3
...
...
@@ -23,7 +23,7 @@ asmlinkage void sparc_breakpoint(struct pt_regs *regs);
asmlinkage
long
sys_mmap2
(
unsigned
long
addr
,
unsigned
long
len
,
unsigned
long
prot
,
unsigned
long
flags
,
unsigned
long
fd
,
unsigned
long
pgoff
);
long
sparc_remap_file_pages
(
unsigned
long
start
,
unsigned
long
size
,
long
s
ys_s
parc_remap_file_pages
(
unsigned
long
start
,
unsigned
long
size
,
unsigned
long
prot
,
unsigned
long
pgoff
,
unsigned
long
flags
);
...
...
arch/sparc/kernel/systbls_32.S
View file @
a0d32ad3
...
...
@@ -55,7 +55,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_ni_syscall
/*
185
*/
.
long
sys_setpgid
,
sys_fremovexattr
,
sys_tkill
,
sys_exit_group
,
sys_newuname
/*
190
*/
.
long
sys_init_module
,
sys_personality
,
sparc_remap_file_pages
,
sys_epoll_create
,
sys_epoll_ctl
/*
190
*/
.
long
sys_init_module
,
sys_personality
,
s
ys_s
parc_remap_file_pages
,
sys_epoll_create
,
sys_epoll_ctl
/*
195
*/
.
long
sys_epoll_wait
,
sys_ioprio_set
,
sys_getppid
,
sys_sparc_sigaction
,
sys_sgetmask
/*
200
*/
.
long
sys_ssetmask
,
sys_sigsuspend
,
sys_newlstat
,
sys_uselib
,
sys_old_readdir
/*
205
*/
.
long
sys_readahead
,
sys_socketcall
,
sys_syslog
,
sys_lookup_dcookie
,
sys_fadvise64
...
...
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