entry-common.S (cdd38c5f1ce4398ec58fec95904b75824daab7b5) | entry-common.S (0047eb9f0905f797df6dd33b8bcbff9c6b116eda) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * linux/arch/arm/kernel/entry-common.S 4 * 5 * Copyright (C) 2000 Russell King 6 */ 7 8#include <asm/assembler.h> --- 330 unchanged lines hidden (view full) --- 339 .error "System call table too big" 340 .endif 341 .rept __NR_syscalls - __sys_nr 342 .long sys_ni_syscall 343 .endr 344 .size \sym, . - \sym 345 .endm 346 | 1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * linux/arch/arm/kernel/entry-common.S 4 * 5 * Copyright (C) 2000 Russell King 6 */ 7 8#include <asm/assembler.h> --- 330 unchanged lines hidden (view full) --- 339 .error "System call table too big" 340 .endif 341 .rept __NR_syscalls - __sys_nr 342 .long sys_ni_syscall 343 .endr 344 .size \sym, . - \sym 345 .endm 346 |
347#define NATIVE(nr, func) syscall nr, func | 347#define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native) 348#define __SYSCALL(nr, func) syscall nr, func |
348 349/* 350 * This is the syscall table declaration for native ABI syscalls. 351 * With EABI a couple syscalls are obsolete and defined as sys_ni_syscall. 352 */ 353 syscall_table_start sys_call_table | 349 350/* 351 * This is the syscall table declaration for native ABI syscalls. 352 * With EABI a couple syscalls are obsolete and defined as sys_ni_syscall. 353 */ 354 syscall_table_start sys_call_table |
354#define COMPAT(nr, native, compat) syscall nr, native | |
355#ifdef CONFIG_AEABI 356#include <calls-eabi.S> 357#else 358#include <calls-oabi.S> 359#endif | 355#ifdef CONFIG_AEABI 356#include <calls-eabi.S> 357#else 358#include <calls-oabi.S> 359#endif |
360#undef COMPAT | |
361 syscall_table_end sys_call_table 362 363/*============================================================================ 364 * Special system call wrappers 365 */ 366@ r0 = syscall number 367@ r8 = syscall table 368sys_syscall: --- 81 unchanged lines hidden (view full) --- 450 b sys_readahead 451ENDPROC(sys_oabi_readahead) 452 453/* 454 * Let's declare a second syscall table for old ABI binaries 455 * using the compatibility syscall entries. 456 */ 457 syscall_table_start sys_oabi_call_table | 360 syscall_table_end sys_call_table 361 362/*============================================================================ 363 * Special system call wrappers 364 */ 365@ r0 = syscall number 366@ r8 = syscall table 367sys_syscall: --- 81 unchanged lines hidden (view full) --- 449 b sys_readahead 450ENDPROC(sys_oabi_readahead) 451 452/* 453 * Let's declare a second syscall table for old ABI binaries 454 * using the compatibility syscall entries. 455 */ 456 syscall_table_start sys_oabi_call_table |
458#define COMPAT(nr, native, compat) syscall nr, compat | 457#undef __SYSCALL_WITH_COMPAT 458#define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, compat) |
459#include <calls-oabi.S> 460 syscall_table_end sys_oabi_call_table 461 462#endif 463 | 459#include <calls-oabi.S> 460 syscall_table_end sys_oabi_call_table 461 462#endif 463 |