git: 6f8866af349c - Add LENTRY and LEND to arm64
Andrew Turner
andrew at FreeBSD.org
Wed Dec 23 14:13:34 UTC 2020
The branch main has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=6f8866af349ceda693edee0dad4aedf4d727096d
commit 6f8866af349ceda693edee0dad4aedf4d727096d
Author: Andrew Turner <andrew at FreeBSD.org>
AuthorDate: 2020-12-23 13:17:56 +0000
Commit: Andrew Turner <andrew at FreeBSD.org>
CommitDate: 2020-12-23 13:57:25 +0000
Add LENTRY and LEND to arm64
These allow us to mark local asm functions as a function
Sponsored by: Innovate UK
---
sys/arm64/include/asm.h | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/sys/arm64/include/asm.h b/sys/arm64/include/asm.h
index 443377bf0c14..b6a18cf8a7e4 100644
--- a/sys/arm64/include/asm.h
+++ b/sys/arm64/include/asm.h
@@ -38,12 +38,15 @@
#define _C_LABEL(x) x
-#define ENTRY(sym) \
- .text; .globl sym; .align 2; .type sym,#function; sym: \
+#define LENTRY(sym) \
+ .text; .align 2; .type sym,#function; sym: \
.cfi_startproc
+#define ENTRY(sym) \
+ .globl sym; LENTRY(sym)
#define EENTRY(sym) \
.globl sym; sym:
-#define END(sym) .cfi_endproc; .size sym, . - sym
+#define LEND(sym) .cfi_endproc; .size sym, . - sym
+#define END(sym) LEND(sym)
#define EEND(sym)
#define WEAK_REFERENCE(sym, alias) \
More information about the dev-commits-src-main
mailing list