Important: The information in this document is obsolete and should not be used for new development.
SPrimaryInit
This function is used only by the Macintosh Operating System.
FUNCTION SPrimaryInit (spBlkPtr: SpBlockPtr): OSErr;
- spBlkPtr
- A pointer to a Slot Manager parameter block.
--> spFlags
SignedByte Flags passed to the card's PrimaryInit
code.DESCRIPTION
Called by the Slot Manager during system startup, theSPrimaryInit
function executes the code in thePrimaryInit
entry of each card's board sResource. It passes thespFlags
byte to thePrimaryInit
code via theseFlags
field of theSEBlock
. ThefWarmStart
bit is set if a restart is being performed.SPECIAL CONSIDERATIONS
TheSPrimaryInit
function may move memory.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSPrimaryInit
function are
Trap macro Selector _SlotManager $0021 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 $0021
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
smBadsPtrErr
-346 Bad spsPointer
valuesmByteLanesErr
-347 Bad spByteLanes
valueSEE ALSO
For more information about Slot Manager initialization, see "About the Slot Manager," beginning on page 2-15.