mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
powerpc: add CFUNC assembly label annotation
This macro is to be used in assembly where C functions are called. pcrel addressing mode requires branches to functions with a localentry value of 1 to have either a trailing nop or @notoc. This macro permits the latter without changing callers. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> [mpe: Add dummy definitions to fix selftests build] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20230408021752.862660-5-npiggin@gmail.com
This commit is contained in:
committed by
Michael Ellerman
parent
dc5dac748a
commit
4e991e3c16
@@ -27,6 +27,7 @@
|
||||
#define _GLOBAL_TOC(A) _GLOBAL(A)
|
||||
#define _GLOBAL_TOC_KASAN(A) _GLOBAL(A)
|
||||
#define _GLOBAL_KASAN(A) _GLOBAL(A)
|
||||
#define CFUNC(name) name
|
||||
|
||||
#define PPC_MTOCRF(A, B) mtocrf A, B
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#define _GLOBAL(A) FUNC_START(test_ ## A)
|
||||
#define _GLOBAL_TOC(A) FUNC_START(test_ ## A)
|
||||
#define CFUNC(name) name
|
||||
|
||||
#define CONFIG_ALTIVEC
|
||||
|
||||
|
||||
Reference in New Issue
Block a user