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:
parent
04c704c5c9
commit
41168f69fb
3 changed files with 17 additions and 8 deletions
|
@ -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}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue