-- file GlobalStorageDefs
-- edited by Levin, March 2, 1978 5:19 PM
-- edited by Schroeder, August 23, 1978 2:45 PM
-- Edited by Brotz, September 10, 1980 12:17 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] RETURNS [MemoryPagePtr];
-- Obtains numPages contiguous memory page and returns a pointer to the start of these
-- pages to the caller.


ReturnMemoryPages: PROCEDURE [numPages: CARDINAL, page: MemoryPagePtr];
-- Accepts the memory pages back into the storage pool.


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 --


MemoryPagePtr: TYPE = POINTER TO UNSPECIFIED;


-- Constants --

storageType: SegmentDefs.DataSegmentType = 88;


END. -- of GlobalStorageDefs --