Prefix export symbol prefix to coroutine_transfer

This commit is contained in:
Nobuyoshi Nakada 2020-07-05 17:27:12 +09:00
Родитель 04c704c5c9
Коммит 41168f69fb
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 7CD2805BFA3770C6
3 изменённых файлов: 17 добавлений и 8 удалений

Просмотреть файл

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