From f4d92bb7bdaf1281cce166c9f56bee6f7ab147a6 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Thu, 15 Feb 2018 04:36:36 +0000 Subject: [PATCH] ppc: trampoline: cleanups --- arch/ppc/startcontext.S | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/ppc/startcontext.S b/arch/ppc/startcontext.S index a0deabb..a117b9c 100644 --- a/arch/ppc/startcontext.S +++ b/arch/ppc/startcontext.S @@ -14,8 +14,12 @@ __start_context: /* get the proper context into position and test for NULL */ mr. 3,31 - beq hosed + + /* if we have no linked context, lets get out of here */ + beq no_linked_context + + /* jump to setcontext */ bl __setcontext@local -hosed: +no_linked_context: b exit@GOT