Created
October 27, 2022 11:39
-
-
Save shugo/2d2406069df75bd780b5134b747e8d9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/extlib/coru/coru_platform.c b/extlib/coru/coru_platform.c | |
index fb64002..bab7041 100644 | |
--- a/extlib/coru/coru_platform.c | |
+++ b/extlib/coru/coru_platform.c | |
@@ -68,8 +68,8 @@ __asm__ ( | |
// we startup a coroutine. | |
void coru_plat_prologue(void); | |
__asm__ ( | |
- ".globl coru_plat_prologue \n" | |
- "coru_plat_prologue: \n" | |
+ ".globl _coru_plat_prologue \n" | |
+ "_coru_plat_prologue: \n" | |
"\t mov %r13, %rdi \n" // tail call cb(data) | |
"\t jmp *%r12 \n" | |
); | |
@@ -101,8 +101,8 @@ int coru_plat_init(void **psp, uintptr_t **pcanary, | |
// Swap stacks | |
uintptr_t coru_plat_yield(void **sp, uintptr_t arg); | |
__asm__ ( | |
- ".globl coru_plat_yield \n" | |
- "coru_plat_yield: \n" | |
+ ".globl _coru_plat_yield \n" | |
+ "_coru_plat_yield: \n" | |
"\t push %r15 \n" // push callee saved registers | |
"\t push %r14 \n" | |
"\t push %r13 \n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment