Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

parisc: Avoid compat syscalls when COMPAT=n

Drop unnecessary code and syscall tables when we run a 64-bit
kernel with conpat mode disabled.

Signed-off-by: Helge Deller <deller@gmx.de>

+7 -4
+7 -4
arch/parisc/kernel/syscall.S
··· 241 241 /* Note! We cannot use the syscall table that is mapped 242 242 nearby since the gateway page is mapped execute-only. */ 243 243 244 - #ifdef CONFIG_64BIT 244 + #ifdef CONFIG_COMPAT 245 245 ldil L%sys_call_table, %r1 246 246 or,ev %r2,%r2,%r2 247 247 ldil L%sys_call_table64, %r1 ··· 250 250 ldo R%sys_call_table64(%r1), %r19 251 251 #else 252 252 load32 sys_call_table, %r19 253 - #endif 253 + #endif 254 254 comiclr,>> __NR_Linux_syscalls, %r20, %r0 255 255 b,n .Lsyscall_nosys 256 256 ··· 374 374 /* Note! We cannot use the syscall table that is mapped 375 375 nearby since the gateway page is mapped execute-only. */ 376 376 377 - #ifdef CONFIG_64BIT 377 + #ifdef CONFIG_COMPAT 378 378 LDREG TASK_PT_GR30(%r1), %r19 /* get users sp back */ 379 379 extrd,u %r19,63,1,%r2 /* W hidden in bottom bit */ 380 380 ··· 1326 1326 END(lws_table) 1327 1327 /* End of lws table */ 1328 1328 1329 - #ifdef CONFIG_64BIT 1329 + #ifdef CONFIG_COMPAT 1330 1330 #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, compat) 1331 1331 #else 1332 1332 #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native) 1333 1333 #endif 1334 1334 #define __SYSCALL(nr, entry) ASM_ULONG_INSN entry 1335 + 1335 1336 .align 8 1336 1337 ENTRY(sys_call_table) 1337 1338 .export sys_call_table,data 1339 + #if defined(CONFIG_COMPAT) || !defined(CONFIG_64BIT) 1338 1340 #include <asm/syscall_table_32.h> /* 32-bit syscalls */ 1341 + #endif 1339 1342 END(sys_call_table) 1340 1343 1341 1344 #ifdef CONFIG_64BIT