diff options
| -rw-r--r-- | arch/tile/kernel/intvec_64.S | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/tile/kernel/intvec_64.S b/arch/tile/kernel/intvec_64.S index 54bc9a6678e8..4ea080902654 100644 --- a/arch/tile/kernel/intvec_64.S +++ b/arch/tile/kernel/intvec_64.S | |||
| @@ -1035,7 +1035,9 @@ handle_syscall: | |||
| 1035 | /* Ensure that the syscall number is within the legal range. */ | 1035 | /* Ensure that the syscall number is within the legal range. */ |
| 1036 | { | 1036 | { |
| 1037 | moveli r20, hw2(sys_call_table) | 1037 | moveli r20, hw2(sys_call_table) |
| 1038 | #ifdef CONFIG_COMPAT | ||
| 1038 | blbs r30, .Lcompat_syscall | 1039 | blbs r30, .Lcompat_syscall |
| 1040 | #endif | ||
| 1039 | } | 1041 | } |
| 1040 | { | 1042 | { |
| 1041 | cmpltu r21, TREG_SYSCALL_NR_NAME, r21 | 1043 | cmpltu r21, TREG_SYSCALL_NR_NAME, r21 |
| @@ -1093,6 +1095,7 @@ handle_syscall: | |||
| 1093 | j .Lresume_userspace /* jump into middle of interrupt_return */ | 1095 | j .Lresume_userspace /* jump into middle of interrupt_return */ |
| 1094 | } | 1096 | } |
| 1095 | 1097 | ||
| 1098 | #ifdef CONFIG_COMPAT | ||
| 1096 | .Lcompat_syscall: | 1099 | .Lcompat_syscall: |
| 1097 | /* | 1100 | /* |
| 1098 | * Load the base of the compat syscall table in r20, and | 1101 | * Load the base of the compat syscall table in r20, and |
| @@ -1117,6 +1120,7 @@ handle_syscall: | |||
| 1117 | { move r15, r4; addxi r4, r4, 0 } | 1120 | { move r15, r4; addxi r4, r4, 0 } |
| 1118 | { move r16, r5; addxi r5, r5, 0 } | 1121 | { move r16, r5; addxi r5, r5, 0 } |
| 1119 | j .Lload_syscall_pointer | 1122 | j .Lload_syscall_pointer |
| 1123 | #endif | ||
| 1120 | 1124 | ||
| 1121 | .Linvalid_syscall: | 1125 | .Linvalid_syscall: |
| 1122 | /* Report an invalid syscall back to the user program */ | 1126 | /* Report an invalid syscall back to the user program */ |
