X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fassembly%2Fppc%2Fsupport.lisp;h=512e4c14808b95c76a1d9247ecd58b5a14d0565c;hb=78689792e8f8d20b3b931f508f3a9eca81b64f1f;hp=3d736ac70f10358c83db0358142562aefb639e73;hpb=a3cf4cf656f0067aaf028f62c340e77c0dca7bbb;p=sbcl.git diff --git a/src/assembly/ppc/support.lisp b/src/assembly/ppc/support.lisp index 3d736ac..512e4c1 100644 --- a/src/assembly/ppc/support.lisp +++ b/src/assembly/ppc/support.lisp @@ -1,8 +1,19 @@ +;;;; the machine-specific support routines needed by the file assembler + +;;;; This software is part of the SBCL system. See the README file for +;;;; more information. +;;;; +;;;; This software is derived from the CMU CL system, which was +;;;; written at Carnegie Mellon University and released into the +;;;; public domain. The software is in the public domain and is +;;;; provided with absolutely no warranty. See the COPYING and CREDITS +;;;; files for more information. + (in-package "SB!VM") (!def-vm-support-routine generate-call-sequence (name style vop) (ecase style - (:raw + ((:raw :none) (values `((inst bla (make-fixup ',name :assembly-routine))) `())) @@ -34,11 +45,7 @@ ,lra) (:temporary (:scs (control-stack) :offset nfp-save-offset) ,nfp-save) - (:save-p :compute-only))))) - (:none - (values - `((inst ba (make-fixup ',name :assembly-routine))) - `())))) + (:save-p :compute-only))))))) (!def-vm-support-routine generate-return-sequence (style) (ecase style @@ -53,3 +60,6 @@ :offset lip-offset) :offset 2))) (:none))) + +(defun return-machine-address (scp) + (sap-int (context-lr scp)))