X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fppc%2Fsystem.lisp;h=684bf3cac9e2710811e5bca5472d03ea784abb05;hb=d3af5593ffff1c39a2f8fa8113704803f347e22f;hp=678b6822a450fc76960d9311e9e6081c3c72e988;hpb=7121b6b31a9c6300af775348fb390b75bef6b1d8;p=sbcl.git diff --git a/src/compiler/ppc/system.lisp b/src/compiler/ppc/system.lisp index 678b682..684bf3c 100644 --- a/src/compiler/ppc/system.lisp +++ b/src/compiler/ppc/system.lisp @@ -217,6 +217,22 @@ (:generator 1 (inst unimp pending-interrupt-trap))) +#!+sb-thread +(defknown current-thread-offset-sap ((unsigned-byte 64)) + system-area-pointer (flushable)) + +#!+sb-thread +(define-vop (current-thread-offset-sap) + (:results (sap :scs (sap-reg))) + (:result-types system-area-pointer) + (:translate current-thread-offset-sap) + (:args (n :scs (unsigned-reg) :target sap)) + (:arg-types unsigned-num) + (:policy :fast-safe) + (:generator 2 + (inst slwi n n word-shift) + (inst lwzx sap thread-base-tn n))) + (define-vop (halt) (:generator 1 (inst unimp halt-trap)))