X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fmips-vm.lisp;h=df647ebbef68c1626ca75258317ace3b34d595ac;hb=cd1b14acf6f548b28b8a14e554d779f0473122ec;hp=b3c44b2328f14af8c5dd123642d1f2a1096c6bb5;hpb=9dcd91eba92f6f2db9ae65d7640f2cd2f4ee2a8b;p=sbcl.git diff --git a/src/code/mips-vm.lisp b/src/code/mips-vm.lisp index b3c44b2..df647eb 100644 --- a/src/code/mips-vm.lisp +++ b/src/code/mips-vm.lisp @@ -7,17 +7,11 @@ (define-alien-type os-context-register-t unsigned-long-long) -;;;; MACHINE-TYPE and MACHINE-VERSION +;;;; MACHINE-TYPE (defun machine-type () "Returns a string describing the type of the local machine." "MIPS") - -;;; support for CL:MACHINE-VERSION defined OAOO elsewhere -(defun get-machine-version () - #!+little-endian "little-endian" - #!-little-endian "big-endian") - ;;;; FIXUP-CODE-OBJECT @@ -26,8 +20,7 @@ (unless (zerop (rem offset n-word-bytes)) (error "Unaligned instruction? offset=#x~X." offset)) (sb!sys:without-gcing - (let ((sap (truly-the system-area-pointer - (%primitive sb!c::code-instructions code)))) + (let ((sap (%primitive sb!c::code-instructions code))) (ecase kind (:jump (aver (zerop (ash value -28))) @@ -79,8 +72,8 @@ ;;; long is another question. This stuff still needs testing. (define-alien-routine ("os_context_fpregister_addr" context-float-register-addr) (* os-context-register-t) - (context (* os-context-t)) - (index int)) + (context (* os-context-t) :in) + (index int :in)) (defun context-float-register (context index format) (declare (type (alien (* os-context-t)) context)) @@ -98,7 +91,7 @@ ("arch_get_fp_control" floating-point-modes) unsigned-int) (define-alien-routine - ("arch_set_fp_control" %floating-point-modes-setter) void (fp unsigned-int)) + ("arch_set_fp_control" %floating-point-modes-setter) void (fp unsigned-int :in)) (defun (setf floating-point-modes) (val) (%floating-point-modes-setter val)) @@ -106,7 +99,7 @@ ;;; the same format as returned by FLOATING-POINT-MODES. (define-alien-routine ("os_context_fp_control" context-floating-point-modes) unsigned-int - (context (* os-context-t))) + (context (* os-context-t) :in)) ;;;; Internal-error-arguments.