-- file GlobalStorageDefs
-- edited by Levin, March 2, 1978 5:19 PM
-- edited by Schroeder, August 23, 1978 2:45 PM
-- Converted to Mesa 4.0: May 17, 1978 3:41 PM
-- Global Storage Division - the memory czar. This division provides the memory space needed by other divisions by interfacing with the Mesa runtime storage allocator.
DIRECTORY
AltoDefs: FROM "AltoDefs",
ovD: FROM "OverviewDefs",
SegmentDefs: FROM "SegmentDefs";
gsD: DEFINITIONS =
BEGIN
GetMemoryPages: PROCEDURE [numPages: CARDINAL, class: StorageClass] RETURNS [MemoryPagePtr, ovD.ErrorCode];
-- Obtains numPages contiguous memory page and returns a pointer to the start of these pages to the caller.
ReturnMemoryPages: PROCEDURE [numPages: CARDINAL, class: StorageClass, page: MemoryPagePtr];
-- Accepts the memory pages back into the storage pool from the storage class.
FlushCodeSegments: PROCEDURE;
--Removes all unlocked code segments from memory.
DisableFlusher: PROCEDURE;
--Disables the flusher. Use when running on an extended memory ALTO
EnableFlusher: PROCEDURE;
--Enables the flusher. Default is enabled.
-- Types --
StorageClass: TYPE = {TOC, DM, CM, display, IObuffer, other};
MemoryPagePtr: TYPE = POINTER TO UNSPECIFIED;
END. -- of GlobalStorageDefs --