diff options
author | Tiezhu Yang <yangtiezhu@loongson.cn> | 2023-10-18 03:42:52 +0300 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2023-10-18 03:42:52 +0300 |
commit | 00c2ca84c680f64b79b5e10a482ca435fd7d98ce (patch) | |
tree | c558ee6ab0f1c45f50fd155db22855844dcf535d /arch/loongarch/include | |
parent | 58720809f52779dc0f08e53e54b014209d13eebb (diff) | |
download | linux-00c2ca84c680f64b79b5e10a482ca435fd7d98ce.tar.xz |
LoongArch: Use SYM_CODE_* to annotate exception handlers
As described in include/linux/linkage.h,
FUNC -- C-like functions (proper stack frame etc.)
CODE -- non-C code (e.g. irq handlers with different, special stack etc.)
SYM_FUNC_{START, END} -- use for global functions
SYM_CODE_{START, END} -- use for non-C (special) functions
So use SYM_CODE_* to annotate exception handlers.
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/include')
-rw-r--r-- | arch/loongarch/include/asm/linkage.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/loongarch/include/asm/linkage.h b/arch/loongarch/include/asm/linkage.h index 81b0c4cfbf4f..e2eca1a25b4e 100644 --- a/arch/loongarch/include/asm/linkage.h +++ b/arch/loongarch/include/asm/linkage.h @@ -33,4 +33,12 @@ .cfi_endproc; \ SYM_END(name, SYM_T_FUNC) +#define SYM_CODE_START(name) \ + SYM_START(name, SYM_L_GLOBAL, SYM_A_ALIGN) \ + .cfi_startproc; + +#define SYM_CODE_END(name) \ + .cfi_endproc; \ + SYM_END(name, SYM_T_NONE) + #endif |