Text preview for : BootDefs.mesa_Oct77.pdf part of xerox BootDefs.mesa_Oct77 xerox mesa 3.0_1977 listing BootDefs.mesa_Oct77.pdf



Back to : BootDefs.mesa_Oct77.pdf | Home

bootdefs.mesa Z4-0CT-77 21:15:31 Page 1


-- BootDefs.Mesa Edited by Sandman on July 22, 1977 2:18 PM
DIRECTORY
AltoDefs: FROM "altodefs",
AltoFileDefs: FROM "altofiledefs",
SegmentDefs: FROM "segmentdefs":
DEFINITIONS FROM SegmentDefs:
BootDefs: DEFINITIONS SHARES SegmentDefs ~ BEGIN
-- Boot Primative Objects
BootDataSegment: PROCEDURE [base: PageNumber, pages: PageCount]
RETURNS [seg: DataSegmentHandle]:
BootFileSegment: PROCEDURE [file: FileHandle, base: PageNumber,
pages: PageCount, access: AccessOptions, addr: POINTER]
RETURNS [seg: FileSegmentHandle]:
BootFile: PROCEDURE [access: AccessOptions] RETURNS [file: FileHandle]:
-- Free Objects
Frob: TYPE = Free Object:
FrobHandle: TYPE = POINTER TO Frob:
-- Primative Object Tables
TableHandle: TYPE = POINTER TO Table:
Table: TYPE = RECORD [
size: CARDINAL,
link: SubTableHandle]:
SubTableHandle: TYPE = POINTER TO SubTable:
SubTable: TYPE = RECORD [
link: SubTableHandle,
free: FrobHandle,
seal, alloc: AltoDefs.BYTE,
seg: DataSegmentHandle]:
SystemTable: TYPE = RECORD [
pagemap: POINTER TO ARRAY [0 .. 15] OF WORD,
datasegs, filesegs, files: TableHandle]:
SystemTableHandle: TYPE = POINTER TO SystemTable:
-- Table Management
GetPageMap: PROCEDURE RETURNS [POINTER];
GetFileTable: PROCEDURE RETURNS [TableHandle);
GetFileSegmentTable: PROCEDURE RETURNS [TableHandle]:
GetDataSegmentTable: PROCEDURE RETURNS [TableHandle]:
GetSystemTable: PROCEDURE RETURNS [SystemTableHandle);
-- Object Management
InvalidObject: SIGNAL [table: TableHandle, object: POINTER];
AllocateObject: PROCEDURE [table: TableHandle] RfTURNS [ObjectHandle];
LiberateObject: PROCroURE [table: Tablellandle, object: ObjectHandle]:
ValidateObject: PROCEDURE [table: TableHandle, object: Objectllandle]:
[numerateObjects: PROCEDURE [table: Tablellandle,
proc: PROcrDURf [Objectllandle] RETURNS [BOOLEAN]]
RETURNS [object: Objectllandle);
-- File Length Operations
NormalizerileIndex: PROCrDURr [page: PageNumber, byte: CARDINAL]
RETURNS [PageNumber. CARDINAL];
RoundFilelndex: PROCEDURE [page: PageNumber. byte: CARDINAL]
RrTURNS [PageNumber. CARDINAL];
TruncateF ileTndex: PROCEDURE [page: PageNumber, byte: CARDINAL]
RETURNS [PageNumber. CARDINAL];
-- File Segment POSitioning
bootdefs.mesa 24-0CT-77 21:15:31 Page 2


FindSegHint: PROCEDURE [seg: FileSegmentHandle]:
PositionSeg: PROCEDURE [seg: FileSegmentHandle. useseg: BOOLEAN] RETURNS [BOOLEAN]:
MapVM: PROCEDURE [seg: FileSegmentHandle. de: AltoFileDefs.vDC]:
END.