[PATCH] PPC64: xmon recursion

Linas Vepstas linas at austin.ibm.com
Thu Jan 6 07:27:56 EST 2005



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

Signed-off-by: Linas Vepstas <linas at linas.org>


===== arch/ppc64/xmon/setjmp.c 1.1 vs edited =====
--- 1.1/arch/ppc64/xmon/setjmp.c	2002-02-14 06:14:36 -06:00
+++ edited/arch/ppc64/xmon/setjmp.c	2004-12-14 17:51:29 -06:00
@@ -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));
 }



More information about the Linuxppc64-dev mailing list