mirror of
https://github.com/libretro/RetroArch
synced 2025-04-15 23:42:30 +00:00
(libco) Update
This commit is contained in:
parent
feded9aebf
commit
932a8c3e5d
@ -66,7 +66,8 @@ cothread_t co_create(unsigned int size, void (*entrypoint)(void))
|
|||||||
ptr[5] = 0; /* r9 */
|
ptr[5] = 0; /* r9 */
|
||||||
ptr[6] = 0; /* r10 */
|
ptr[6] = 0; /* r10 */
|
||||||
ptr[7] = 0; /* r11 */
|
ptr[7] = 0; /* r11 */
|
||||||
ptr[8] = (uintptr_t)ptr + size + 256 - 4; /* r13, stack pointer */
|
/* Align stack to 64-bit */
|
||||||
|
ptr[8] = (uintptr_t)ptr + size + 256 - 8; /* r13, stack pointer */
|
||||||
ptr[9] = (uintptr_t)entrypoint; /* r15, PC (link register r14 gets saved here). */
|
ptr[9] = (uintptr_t)entrypoint; /* r15, PC (link register r14 gets saved here). */
|
||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user