1 ;;;; system memory allocation
3 ;;;; This software is part of the SBCL system. See the README file for
6 ;;;; This software is derived from the CMU CL system, which was
7 ;;;; written at Carnegie Mellon University and released into the
8 ;;;; public domain. The software is in the public domain and is
9 ;;;; provided with absolutely no warranty. See the COPYING and CREDITS
10 ;;;; files for more information.
12 (in-package "SB!KERNEL")
14 (sb!alien:define-alien-routine ("os_allocate" allocate-system-memory)
16 (bytes sb!alien:unsigned-long))
18 (sb!alien:define-alien-routine ("os_allocate_at" allocate-system-memory-at)
20 (address system-area-pointer)
21 (bytes sb!alien:unsigned-long))
23 (sb!alien:define-alien-routine ("os_reallocate" reallocate-system-memory)
25 (old system-area-pointer)
26 (old-size sb!alien:unsigned-long)
27 (new-size sb!alien:unsigned-long))
29 (sb!alien:define-alien-routine ("os_deallocate" deallocate-system-memory)
31 (addr system-area-pointer)
32 (bytes sb!alien:unsigned-long))