Commit d810953c authored by Anton Blanchard's avatar Anton Blanchard

ppc64: arguments to mlockall and msync dont need sign extending

parent c83c069b
...@@ -742,7 +742,7 @@ _GLOBAL(sys_call_table32) ...@@ -742,7 +742,7 @@ _GLOBAL(sys_call_table32)
.llong .sys32_getdents .llong .sys32_getdents
.llong .ppc32_select .llong .ppc32_select
.llong .sys_flock .llong .sys_flock
.llong .sys32_msync .llong .sys_msync
.llong .sys32_readv /* 145 */ .llong .sys32_readv /* 145 */
.llong .sys32_writev .llong .sys32_writev
.llong .sys32_getsid .llong .sys32_getsid
...@@ -750,7 +750,7 @@ _GLOBAL(sys_call_table32) ...@@ -750,7 +750,7 @@ _GLOBAL(sys_call_table32)
.llong .sys32_sysctl .llong .sys32_sysctl
.llong .sys_mlock /* 150 */ .llong .sys_mlock /* 150 */
.llong .sys_munlock .llong .sys_munlock
.llong .sys32_mlockall .llong .sys_mlockall
.llong .sys_munlockall .llong .sys_munlockall
.llong .sys32_sched_setparam .llong .sys32_sched_setparam
.llong .sys32_sched_getparam /* 155 */ .llong .sys32_sched_getparam /* 155 */
......
...@@ -2340,32 +2340,6 @@ asmlinkage long sys32_mkdir(const char * pathname, u32 mode) ...@@ -2340,32 +2340,6 @@ asmlinkage long sys32_mkdir(const char * pathname, u32 mode)
return sys_mkdir(pathname, (int)mode); return sys_mkdir(pathname, (int)mode);
} }
extern asmlinkage long sys_mlockall(int flags);
/* Note: it is necessary to treat flags as an unsigned int,
* with the corresponding cast to a signed int to insure that the
* proper conversion (sign extension) between the register representation of a signed int (msr in 32-bit mode)
* and the register representation of a signed int (msr in 64-bit mode) is performed.
*/
asmlinkage long sys32_mlockall(u32 flags)
{
return sys_mlockall((int)flags);
}
extern asmlinkage long sys_msync(unsigned long start, size_t len, int flags);
/* Note: it is necessary to treat flags as an unsigned int,
* with the corresponding cast to a signed int to insure that the
* proper conversion (sign extension) between the register representation of a signed int (msr in 32-bit mode)
* and the register representation of a signed int (msr in 64-bit mode) is performed.
*/
asmlinkage long sys32_msync(unsigned long start, size_t len, u32 flags)
{
return sys_msync(start, len, (int)flags);
}
extern asmlinkage long sys_nice(int increment); extern asmlinkage long sys_nice(int increment);
long sys32_nice(u32 increment) long sys32_nice(u32 increment)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment