diff options
Diffstat (limited to 'arch/ppc64/kernel/sys_ppc32.c')
| -rw-r--r-- | arch/ppc64/kernel/sys_ppc32.c | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/arch/ppc64/kernel/sys_ppc32.c b/arch/ppc64/kernel/sys_ppc32.c index 9bd16cef0ed4..206619080e66 100644 --- a/arch/ppc64/kernel/sys_ppc32.c +++ b/arch/ppc64/kernel/sys_ppc32.c | |||
| @@ -822,16 +822,6 @@ asmlinkage long sys32_getpgid(u32 pid) | |||
| 822 | } | 822 | } |
| 823 | 823 | ||
| 824 | 824 | ||
| 825 | /* Note: it is necessary to treat which and who as unsigned ints, | ||
| 826 | * with the corresponding cast to a signed int to insure that the | ||
| 827 | * proper conversion (sign extension) between the register representation of a signed int (msr in 32-bit mode) | ||
| 828 | * and the register representation of a signed int (msr in 64-bit mode) is performed. | ||
| 829 | */ | ||
| 830 | asmlinkage long sys32_getpriority(u32 which, u32 who) | ||
| 831 | { | ||
| 832 | return sys_getpriority((int)which, (int)who); | ||
| 833 | } | ||
| 834 | |||
| 835 | 825 | ||
| 836 | /* Note: it is necessary to treat pid as an unsigned int, | 826 | /* Note: it is necessary to treat pid as an unsigned int, |
| 837 | * with the corresponding cast to a signed int to insure that the | 827 | * with the corresponding cast to a signed int to insure that the |
| @@ -1023,6 +1013,11 @@ asmlinkage long sys32_setpgid(u32 pid, u32 pgid) | |||
| 1023 | return sys_setpgid((int)pid, (int)pgid); | 1013 | return sys_setpgid((int)pid, (int)pgid); |
| 1024 | } | 1014 | } |
| 1025 | 1015 | ||
| 1016 | long sys32_getpriority(u32 which, u32 who) | ||
| 1017 | { | ||
| 1018 | /* sign extend which and who */ | ||
| 1019 | return sys_getpriority((int)which, (int)who); | ||
| 1020 | } | ||
| 1026 | 1021 | ||
| 1027 | long sys32_setpriority(u32 which, u32 who, u32 niceval) | 1022 | long sys32_setpriority(u32 which, u32 who, u32 niceval) |
| 1028 | { | 1023 | { |
| @@ -1030,6 +1025,18 @@ long sys32_setpriority(u32 which, u32 who, u32 niceval) | |||
| 1030 | return sys_setpriority((int)which, (int)who, (int)niceval); | 1025 | return sys_setpriority((int)which, (int)who, (int)niceval); |
| 1031 | } | 1026 | } |
| 1032 | 1027 | ||
| 1028 | long sys32_ioprio_get(u32 which, u32 who) | ||
| 1029 | { | ||
| 1030 | /* sign extend which and who */ | ||
| 1031 | return sys_ioprio_get((int)which, (int)who); | ||
| 1032 | } | ||
| 1033 | |||
| 1034 | long sys32_ioprio_set(u32 which, u32 who, u32 ioprio) | ||
| 1035 | { | ||
| 1036 | /* sign extend which, who and ioprio */ | ||
| 1037 | return sys_ioprio_set((int)which, (int)who, (int)ioprio); | ||
| 1038 | } | ||
| 1039 | |||
| 1033 | /* Note: it is necessary to treat newmask as an unsigned int, | 1040 | /* Note: it is necessary to treat newmask as an unsigned int, |
| 1034 | * with the corresponding cast to a signed int to insure that the | 1041 | * with the corresponding cast to a signed int to insure that the |
| 1035 | * proper conversion (sign extension) between the register representation of a signed int (msr in 32-bit mode) | 1042 | * proper conversion (sign extension) between the register representation of a signed int (msr in 32-bit mode) |
