summaryrefslogtreecommitdiff
path: root/coroutine/arm32/Context.S
diff options
context:
space:
mode:
Diffstat (limited to 'coroutine/arm32/Context.S')
-rw-r--r--coroutine/arm32/Context.S9
1 files changed, 6 insertions, 3 deletions
diff --git a/coroutine/arm32/Context.S b/coroutine/arm32/Context.S
index 08a0491de8..c5338f0b67 100644
--- a/coroutine/arm32/Context.S
+++ b/coroutine/arm32/Context.S
@@ -5,14 +5,17 @@
## Copyright, 2018, by Samuel Williams.
##
+#define TOKEN_PASTE(x,y) x##y
+#define PREFIXED_SYMBOL(prefix,name) TOKEN_PASTE(prefix,name)
+
.file "Context.S"
.text
-.globl coroutine_transfer
+.globl PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer)
.align 2
-.type coroutine_transfer,%function
+.type PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer),%function
.syntax unified
-coroutine_transfer:
+PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer):
# Save caller state (8 registers + return address)
push {r4-r11,lr}