1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Prefix export symbol prefix to coroutine_transfer

This commit is contained in:
Nobuyoshi Nakada 2020-07-05 17:27:12 +09:00
parent 04c704c5c9
commit 41168f69fb
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
3 changed files with 17 additions and 8 deletions

View file

@ -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}

View file

@ -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

View file

@ -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