Skip to contentSkip to conversation

PPC64: xmon recursion

PATCH New Linas Vepstas 1 participant 1 message Jan 5, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PPC64: xmon recursion

Hi,

I've had a number of problems with recursive xmon calls, primarily because longjump was returning incorrectly. The following patch fixes this problem.

Please review and forward upstream.

--linas

===== arch/ppc64/xmon/setjmp.c 1.1 vs edited =====

arch/ppc64/xmon/setjmp.c +1 -0
@@ -73,5 +73,6 @@ xmon_longjmp(long *buf, int val)
 	 ld	2,16(%0)\n\
 	 mtlr	0\n\
 	 mr	3,%1\n\
+	 blr	\n\
 	 " : : "r" (buf), "r" (val));
 }