зеркало из https://github.com/github/ruby.git
Prefix export symbol prefix to coroutine_transfer
This commit is contained in:
Родитель
04c704c5c9
Коммит
41168f69fb
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче