X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fcross-misc.lisp;h=51efcbff6b5c0b9575d7450dc1c4dfbeb73dde69;hb=f1b3993e92da7522403803d5f9a187ae28f90a73;hp=868d3f69fabe71094ff893216c3de6012056974d;hpb=1e9966d5f24709d227e20911b4e1ddd27c87a00e;p=sbcl.git diff --git a/src/code/cross-misc.lisp b/src/code/cross-misc.lisp index 868d3f6..51efcbf 100644 --- a/src/code/cross-misc.lisp +++ b/src/code/cross-misc.lisp @@ -145,9 +145,33 @@ (assert (typep array '(simple-array * (*)))) (values array start end 0)) -#!-alpha +#!-(or alpha x86-64) (defun sb!vm::ash-left-mod32 (integer amount) (ldb (byte 32 0) (ash integer amount))) -#!+alpha +#!+(or alpha x86-64) (defun sb!vm::ash-left-mod64 (integer amount) (ldb (byte 64 0) (ash integer amount))) + +;;; package locking nops for the cross-compiler + +(defmacro without-package-locks (&body body) + `(progn ,@body)) + +(defmacro with-single-package-locked-error ((&optional kind thing &rest format) + &body body) + (declare (ignore kind thing format)) + `(progn ,@body)) + +(defun compiler-assert-symbol-home-package-unlocked (symbol control) + (declare (ignore control)) + symbol) + +(defun assert-package-unlocked (package &optional control &rest args) + (declare (ignore control args)) + package) + +(defun assert-symbol-home-package-unlocked (name format &key continuablep) + (declare (ignore format continuablep)) + name) + +(declaim (declaration enable-package-locks disable-package-locks))