diff options
Diffstat (limited to 'kernel/sys.c')
-rw-r--r-- | kernel/sys.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index fc9ebbbaba0c..a57a00597ce0 100644 --- a/kernel/sys.c +++ b/kernel/sys.c | |||
@@ -57,6 +57,12 @@ | |||
57 | #ifndef GET_FPEXC_CTL | 57 | #ifndef GET_FPEXC_CTL |
58 | # define GET_FPEXC_CTL(a,b) (-EINVAL) | 58 | # define GET_FPEXC_CTL(a,b) (-EINVAL) |
59 | #endif | 59 | #endif |
60 | #ifndef GET_ENDIAN | ||
61 | # define GET_ENDIAN(a,b) (-EINVAL) | ||
62 | #endif | ||
63 | #ifndef SET_ENDIAN | ||
64 | # define SET_ENDIAN(a,b) (-EINVAL) | ||
65 | #endif | ||
60 | 66 | ||
61 | /* | 67 | /* |
62 | * this is where the system-wide overflow UID and GID are defined, for | 68 | * this is where the system-wide overflow UID and GID are defined, for |
@@ -2045,6 +2051,13 @@ asmlinkage long sys_prctl(int option, unsigned long arg2, unsigned long arg3, | |||
2045 | return -EFAULT; | 2051 | return -EFAULT; |
2046 | return 0; | 2052 | return 0; |
2047 | } | 2053 | } |
2054 | case PR_GET_ENDIAN: | ||
2055 | error = GET_ENDIAN(current, arg2); | ||
2056 | break; | ||
2057 | case PR_SET_ENDIAN: | ||
2058 | error = SET_ENDIAN(current, arg2); | ||
2059 | break; | ||
2060 | |||
2048 | default: | 2061 | default: |
2049 | error = -EINVAL; | 2062 | error = -EINVAL; |
2050 | break; | 2063 | break; |