Important: The information in this document is obsolete and should not be used for new development.
SInitPRAMRecs
This function is used only by the Macintosh Operating System.
FUNCTION SInitPRAMRecs (spBlkPtr: SpBlockPtr): OSErr;
- spBlkPtr
- A pointer to a Slot Manager parameter block.
DESCRIPTION
TheSInitPRAMRecs
function scans every slot and checks itsBoardId
value against the value stored in PRAM. If the values do not match, thefCardIsChanged
flag is set and the board sResource is searched for aPRAMInitData
entry. If one is found, thesPRAMRecord
for the slot is initialized with the data from the card'ssPRAMInit
record; otherwise it is initialized to 0. The contents of the parameter block are undefined.SPECIAL CONSIDERATIONS
TheSInitPRAMRecs
function may move memory.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSInitPRAMRecs
function are
Trap macro Selector _SlotManager $0025 On entry, register D0 contains the routine selector and register A0 contains the address of the Slot Manager parameter block. When
_SlotManager
returns, register D0 contains the result code.
Registers on entry A0 Address of the parameter block D0 $0025
Registers on exit D0 Result code RESULT CODES
noErr 0 No error smUnExBusErr
-308 A bus error occurred smDisposePErr
-312 An error occurred during execution of DisposePtr
SEE ALSO
For more information about Slot Manager initialization, see "About the Slot Manager," beginning on page 2-15.