From a4742df8ebb6d722a016c90f1250f28a25f68813 Mon Sep 17 00:00:00 2001
From: rtoy <rtoy>
Date: Wed, 8 Feb 2006 01:32:58 +0000
Subject: [PATCH] I think we should make the code-tn be set before we set the
 ctr register.  GC of interrupt contexts wants the code-tn te be set when
 GCing ctr, I think.

---
 compiler/ppc/call.lisp   | 4 ++--
 compiler/ppc/macros.lisp | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/compiler/ppc/call.lisp b/compiler/ppc/call.lisp
index 1e0c99bbd..fd12a05db 100644
--- a/compiler/ppc/call.lisp
+++ b/compiler/ppc/call.lisp
@@ -7,7 +7,7 @@
 ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
 ;;;
 (ext:file-comment
-  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ppc/call.lisp,v 1.11 2006/01/18 15:21:26 rtoy Exp $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ppc/call.lisp,v 1.12 2006/02/08 01:32:58 rtoy Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -833,8 +833,8 @@ default-value-8
 		 (return)))
 	   
 	   (note-this-location vop :call-site)
-	   (inst mtctr entry-point)
 	   (move code-tn function)
+	   (inst mtctr entry-point)
 	   (inst bctr))
 
 	 ,@(ecase return
diff --git a/compiler/ppc/macros.lisp b/compiler/ppc/macros.lisp
index 368b6c22b..342ff45c3 100644
--- a/compiler/ppc/macros.lisp
+++ b/compiler/ppc/macros.lisp
@@ -7,7 +7,7 @@
 ;;; Scott Fahlman (FAHLMAN@CMUC). 
 ;;; **********************************************************************
 ;;;
-;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ppc/macros.lisp,v 1.11 2006/01/18 15:21:26 rtoy Exp $
+;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ppc/macros.lisp,v 1.12 2006/02/08 01:32:58 rtoy Exp $
 ;;;
 ;;; This file contains various useful macros for generating PC code.
 ;;;
@@ -83,8 +83,8 @@
   `(progn
      (inst addi ,lip ,function (- (* vm:word-bytes vm:function-code-offset)
                                   vm:function-pointer-type))
-     (inst mtctr ,lip)
      (move code-tn ,function)
+     (inst mtctr ,lip)
      (inst bctr)))
 
 (defmacro lisp-return (return-pc lip &key (offset 0) (frob-code t))
-- 
GitLab