0.7.7.9:
[sbcl.git] / src / compiler / mips / sanctify.lisp
1 ;;;; Do whatever is necessary to make the given code component
2 ;;;; executable.
3
4 ;;;; This software is part of the SBCL system. See the README file for
5 ;;;; more information.
6 ;;;;
7 ;;;; While most of SBCL is derived from the CMU CL system, the test
8 ;;;; files (like this one) were written from scratch after the fork
9 ;;;; from CMU CL.
10 ;;;; 
11 ;;;; This software is in the public domain and is provided with
12 ;;;; absolutely no warranty. See the COPYING and CREDITS files for
13 ;;;; more information.
14
15 (in-package :sb!vm)
16
17 ;;; FIXME: Is this right?
18 (defun sanctify-for-execution (component)
19   (without-gcing
20    (alien-funcall (extern-alien "os_flush_icache"
21                                 (function void
22                                           system-area-pointer
23                                           unsigned-long))
24                   (code-instructions component)
25                   (* (code-header-ref component code-code-size-slot)
26                      n-word-bytes)))
27   nil)