lkml.org 
[lkml]   [2019]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC 4/6] arm64: assembler: Add macro to annotate asm function having non standard stack-frame.
Date
Signed-off-by: Raphael Gault <raphael.gault@arm.com>
---
arch/arm64/include/asm/assembler.h | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)

diff --git a/arch/arm64/include/asm/assembler.h b/arch/arm64/include/asm/assembler.h
index 4feb6119c3c9..636a07a7eb76 100644
--- a/arch/arm64/include/asm/assembler.h
+++ b/arch/arm64/include/asm/assembler.h
@@ -748,4 +748,22 @@ USER(\label, ic ivau, \tmp2) // invalidate I line PoU
.Lyield_out_\@ :
.endm

+
+#ifdef CONFIG_STACK_VALIDATION
+ /*
+ * This macro is the arm64 assembler equivalent of the
+ * macro STACK_FRAME_NON_STANDARD define at
+ * ~/include/linux/frame.h
+ */
+ .macro asm_stack_frame_non_standard func
+ .pushsection ".discard.func_stack_frame_non_standard"
+ .8byte \func
+ .popsection
+ .endm
+#else
+ .macro asm_stack_frame_non_standard func
+ .endm
+#endif
+
+
#endif /* __ASM_ASSEMBLER_H */
--
2.17.1
\
 
 \ /
  Last update: 2019-04-09 15:54    [W:0.223 / U:7.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site