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
20a7cd3d
Commit
20a7cd3d
authored
Nov 03, 2002
by
David Mosberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ia64: Make mremap() work properly when returning "negative" addresses.
Based on patch by Matt Chapman.
parent
50155729
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletion
+24
-1
arch/ia64/kernel/entry.S
arch/ia64/kernel/entry.S
+1
-1
arch/ia64/kernel/sys_ia64.c
arch/ia64/kernel/sys_ia64.c
+23
-0
No files found.
arch/ia64/kernel/entry.S
View file @
20a7cd3d
...
@@ -1160,7 +1160,7 @@ sys_call_table:
...
@@ -1160,7 +1160,7 @@ sys_call_table:
data8
sys_mlock
data8
sys_mlock
data8
sys_mlockall
data8
sys_mlockall
data8
sys_mprotect
//
1155
data8
sys_mprotect
//
1155
data8
sys
_mremap
data8
ia64
_mremap
data8
sys_msync
data8
sys_msync
data8
sys_munlock
data8
sys_munlock
data8
sys_munlockall
data8
sys_munlockall
...
...
arch/ia64/kernel/sys_ia64.c
View file @
20a7cd3d
...
@@ -316,6 +316,29 @@ sys_free_hugepages (unsigned long addr)
...
@@ -316,6 +316,29 @@ sys_free_hugepages (unsigned long addr)
#endif
/* !CONFIG_HUGETLB_PAGE */
#endif
/* !CONFIG_HUGETLB_PAGE */
asmlinkage
unsigned
long
ia64_mremap
(
unsigned
long
addr
,
unsigned
long
old_len
,
unsigned
long
new_len
,
unsigned
long
flags
,
unsigned
long
new_addr
)
{
extern
unsigned
long
do_mremap
(
unsigned
long
addr
,
unsigned
long
old_len
,
unsigned
long
new_len
,
unsigned
long
flags
,
unsigned
long
new_addr
);
down_write
(
&
current
->
mm
->
mmap_sem
);
{
addr
=
do_mremap
(
addr
,
old_len
,
new_len
,
flags
,
new_addr
);
}
up_write
(
&
current
->
mm
->
mmap_sem
);
if
(
IS_ERR
((
void
*
)
addr
))
return
addr
;
force_successful_syscall_return
();
return
addr
;
}
asmlinkage
long
asmlinkage
long
sys_vm86
(
long
arg0
,
long
arg1
,
long
arg2
,
long
arg3
)
sys_vm86
(
long
arg0
,
long
arg1
,
long
arg2
,
long
arg3
)
{
{
...
...
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