Commit 570fd501 authored by Chris Metcalf's avatar Chris Metcalf

tile: tag some code with #ifdef CONFIG_COMPAT

This allows us to disable COMPAT mode without a link error.
Signed-off-by: default avatarChris Metcalf <cmetcalf@tilera.com>
parent f456da5e
...@@ -1035,7 +1035,9 @@ handle_syscall: ...@@ -1035,7 +1035,9 @@ handle_syscall:
/* Ensure that the syscall number is within the legal range. */ /* Ensure that the syscall number is within the legal range. */
{ {
moveli r20, hw2(sys_call_table) moveli r20, hw2(sys_call_table)
#ifdef CONFIG_COMPAT
blbs r30, .Lcompat_syscall blbs r30, .Lcompat_syscall
#endif
} }
{ {
cmpltu r21, TREG_SYSCALL_NR_NAME, r21 cmpltu r21, TREG_SYSCALL_NR_NAME, r21
...@@ -1093,6 +1095,7 @@ handle_syscall: ...@@ -1093,6 +1095,7 @@ handle_syscall:
j .Lresume_userspace /* jump into middle of interrupt_return */ j .Lresume_userspace /* jump into middle of interrupt_return */
} }
#ifdef CONFIG_COMPAT
.Lcompat_syscall: .Lcompat_syscall:
/* /*
* Load the base of the compat syscall table in r20, and * Load the base of the compat syscall table in r20, and
...@@ -1117,6 +1120,7 @@ handle_syscall: ...@@ -1117,6 +1120,7 @@ handle_syscall:
{ move r15, r4; addxi r4, r4, 0 } { move r15, r4; addxi r4, r4, 0 }
{ move r16, r5; addxi r5, r5, 0 } { move r16, r5; addxi r5, r5, 0 }
j .Lload_syscall_pointer j .Lload_syscall_pointer
#endif
.Linvalid_syscall: .Linvalid_syscall:
/* Report an invalid syscall back to the user program */ /* Report an invalid syscall back to the user program */
......
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