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
265b6629
Commit
265b6629
authored
Aug 18, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: add mmap64 support
parent
39fec8cd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
arch/ppc64/kernel/misc.S
arch/ppc64/kernel/misc.S
+1
-1
arch/ppc64/kernel/sys32.S
arch/ppc64/kernel/sys32.S
+3
-3
arch/ppc64/kernel/sys_ppc32.c
arch/ppc64/kernel/sys_ppc32.c
+7
-0
No files found.
arch/ppc64/kernel/misc.S
View file @
265b6629
...
@@ -696,7 +696,7 @@ _GLOBAL(sys_call_table32)
...
@@ -696,7 +696,7 @@ _GLOBAL(sys_call_table32)
.
llong
.
sys_vfork
.
llong
.
sys_vfork
.
llong
.
sys32_getrlimit
/*
190
*/
.
llong
.
sys32_getrlimit
/*
190
*/
.
llong
.
sys32_readahead
.
llong
.
sys32_readahead
.
llong
.
sys_ni_syscall
/*
192
-
reserved
-
mmap2
*/
.
llong
.
ppc32_mmap2
.
llong
.
sys32_truncate64
/*
193
-
truncate64
*/
.
llong
.
sys32_truncate64
/*
193
-
truncate64
*/
.
llong
.
sys32_ftruncate64
/*
194
-
ftruncate64
*/
.
llong
.
sys32_ftruncate64
/*
194
-
ftruncate64
*/
.
llong
.
sys_stat64
/*
195
-
stat64
*/
.
llong
.
sys_stat64
/*
195
-
stat64
*/
...
...
arch/ppc64/kernel/sys32.S
View file @
265b6629
...
@@ -44,10 +44,10 @@ _GLOBAL(sys32_getsockopt)
...
@@ -44,10 +44,10 @@ _GLOBAL(sys32_getsockopt)
clrldi
r7
,
r7
,
32
/*
int
*
optlen
parm
*/
clrldi
r7
,
r7
,
32
/*
int
*
optlen
parm
*/
b
.
sys_getsockopt
b
.
sys_getsockopt
_GLOBAL
(
sys
32_mmap2
)
_GLOBAL
(
ppc
32_mmap2
)
clrldi
r7
,
r7
,
32
/*
unsigned
long
fd
parm
*/
clrldi
r7
,
r7
,
32
/*
unsigned
long
fd
parm
*/
extsw
r8
,
r8
/*
off_t
offset
*/
clrldi
r8
,
r8
,
32
/*
unsigned
long
pgoff
*/
b
.
sys
_mmap
b
.
sys
32_mmap2
_GLOBAL
(
sys32_socketcall
)
/
*
r3
=
call
,
r4
=
args
*/
_GLOBAL
(
sys32_socketcall
)
/
*
r3
=
call
,
r4
=
args
*/
cmpwi
r3
,
1
cmpwi
r3
,
1
...
...
arch/ppc64/kernel/sys_ppc32.c
View file @
265b6629
...
@@ -4249,3 +4249,10 @@ asmlinkage int sys32_sched_getaffinity(__kernel_pid_t32 pid, unsigned int len,
...
@@ -4249,3 +4249,10 @@ asmlinkage int sys32_sched_getaffinity(__kernel_pid_t32 pid, unsigned int len,
return
ret
;
return
ret
;
}
}
unsigned
long
sys32_mmap2
(
unsigned
long
addr
,
size_t
len
,
unsigned
long
prot
,
unsigned
long
flags
,
unsigned
long
fd
,
unsigned
long
pgoff
)
{
/* This should remain 12 even if PAGE_SIZE changes */
return
sys_mmap
(
addr
,
len
,
prot
,
flags
,
fd
,
pgoff
<<
12
);
}
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