ppc64: trampoline: cleanups

master
William Pitcock 2018-02-15 04:36:47 +00:00
parent f4d92bb7bd
commit f370b25ffc
1 changed files with 7 additions and 7 deletions

View File

@ -13,19 +13,19 @@
.globl __start_context; .globl __start_context;
.hidden __start_context; .hidden __start_context;
__start_context: __start_context:
cmpdi 31,0 /* test if ucontext link pointer is null */ cmpdi 31,0 /* test if ucontext link pointer is null */
beq do_exit /* if it is, exit */ beq no_linked_context /* if it is, exit */
/* now, call SYS_swapcontext */ /* now, call SYS_swapcontext */
mr 4,31 /* ucp is in r31 */ mr 4,31 /* ucp is in r31 */
li 3,0 /* don't care about restoring, set oucp to NULL */ li 3,0 /* don't care about restoring, set oucp to NULL */
li 5,1696 /* sizeof(ucontext_t) */ li 5,1696 /* sizeof(ucontext_t) */
li 0,249 /* SYS_swapcontext */ li 0,249 /* SYS_swapcontext */
sc sc
/* we should not wind back up here, if we do, exit with -1 */ /* we should not wind back up here, if we do, exit with -1 */
li 3,-1 li 3,-1
do_exit: no_linked_context:
b exit@GOT b exit@GOT
nop nop