summaryrefslogtreecommitdiff
path: root/coroutine
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-07-05 17:27:12 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-07-05 17:27:12 +0900
commit41168f69fbeb32cfc88210911d62e419b8116589 (patch)
tree1f511f4ca559879971ab8687a41169cd7b659b11 /coroutine
parent04c704c5c967ea9bded6bf645439fe59c7d9f7d6 (diff)
Prefix export symbol prefix to coroutine_transfer
Diffstat (limited to 'coroutine')
-rw-r--r--coroutine/arm32/Context.S9
-rw-r--r--coroutine/arm64/Context.S7
-rw-r--r--coroutine/ppc64le/Context.S9
3 files changed, 17 insertions, 8 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}
diff --git a/coroutine/arm64/Context.S b/coroutine/arm64/Context.S
index 701ae21eec..04e3f6d1ef 100644
--- a/coroutine/arm64/Context.S
+++ b/coroutine/arm64/Context.S
@@ -5,11 +5,14 @@
## Copyright, 2018, by Samuel Williams.
##
+#define TOKEN_PASTE(x,y) x##y
+#define PREFIXED_SYMBOL(prefix,name) TOKEN_PASTE(prefix,name)
+
.text
.align 2
-.global coroutine_transfer
-coroutine_transfer:
+.global PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer)
+PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer):
# Make space on the stack for caller registers
sub sp, sp, 0xb0
diff --git a/coroutine/ppc64le/Context.S b/coroutine/ppc64le/Context.S
index 1b39086f8f..61be9efcf0 100644
--- a/coroutine/ppc64le/Context.S
+++ b/coroutine/ppc64le/Context.S
@@ -1,9 +1,12 @@
+#define TOKEN_PASTE(x,y) x##y
+#define PREFIXED_SYMBOL(prefix,name) TOKEN_PASTE(prefix,name)
+
.text
.align 2
-.globl coroutine_transfer
-.type coroutine_transfer, @function
-coroutine_transfer:
+.globl PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer)
+.type PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer), @function
+PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer):
# Make space on the stack for caller registers
addi 1,1,-152