summaryrefslogtreecommitdiff
path: root/coroutine/arm64
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-10-08 16:12:10 +0900
committerNobuyoshi Nakada <[email protected]>2024-10-08 23:29:49 +0900
commit1f39184bc7e564eefc9c6e09e038e20e112bef20 (patch)
tree18b4296223b8ac856b4363cf901e5f0211c18f0d /coroutine/arm64
parent49ccc31d906d26f980dcedf1197a2e18245ec50e (diff)
Substitute `coroutine_transfer` with prefixed symbol in Makefile
``` coroutine/arm64/Context.S:31:57: error: invoking macro TOKEN_PASTE argument 1: empty macro arguments are undefined in ISO C90 [-Wpedantic] 31 | .global PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer) | ^ ```
Diffstat (limited to 'coroutine/arm64')
-rw-r--r--coroutine/arm64/Context.S5
1 files changed, 2 insertions, 3 deletions
diff --git a/coroutine/arm64/Context.S b/coroutine/arm64/Context.S
index 2391333cae..11f6aa0810 100644
--- a/coroutine/arm64/Context.S
+++ b/coroutine/arm64/Context.S
@@ -6,7 +6,6 @@
##
#define TOKEN_PASTE(x,y) x##y
-#define PREFIXED_SYMBOL(prefix,name) TOKEN_PASTE(prefix,name)
#if defined(__APPLE__)
#define x29 fp
@@ -28,8 +27,8 @@
## See "Providing protection for complex software" for more details about PAC/BTI
## https://developer.arm.com/architectures/learn-the-architecture/providing-protection-for-complex-software
-.global PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer)
-PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer):
+.global PREFIXED_SYMBOL(coroutine_transfer)
+PREFIXED_SYMBOL(coroutine_transfer):
#if defined(__ARM_FEATURE_PAC_DEFAULT) && (__ARM_FEATURE_PAC_DEFAULT != 0)
# paciasp (it also acts as BTI landing pad, so no need to insert BTI also)