From 41168f69fbeb32cfc88210911d62e419b8116589 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 5 Jul 2020 17:27:12 +0900 Subject: Prefix export symbol prefix to coroutine_transfer --- coroutine/arm32/Context.S | 9 ++++++--- coroutine/arm64/Context.S | 7 +++++-- coroutine/ppc64le/Context.S | 9 ++++++--- 3 files changed, 17 insertions(+), 8 deletions(-) (limited to 'coroutine') 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 -- cgit v1.2.3