Jump to content

DevHlp_CreateSpinLock

From EDM2
Revision as of 21:56, 22 May 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:DevHlp_CreateSpinLock}} Create a subsystem spinlock. This function creates a subsystem spinlock. ==Parameters== Pointer to spinlock handle. ==Return Code== Exit ==Example Code== ;Assembly language ; dh_CreateSpinLock - Create a spinlock ; ; This routine creats a subsystem spinlock. ; ; ENTRY: AX:BX = pointer to store spinlock handle ; ; EXIT: None ; ; USES: EAX, Flags ;...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Create a subsystem spinlock.

This function creates a subsystem spinlock.

Parameters

Pointer to spinlock handle.

Return Code

Exit

Example Code

Assembly language
    ;       dh_CreateSpinLock - Create a spinlock ;
    ;       This routine creats a subsystem spinlock.
    ;
    ;       ENTRY:  AX:BX = pointer to store spinlock handle
    ;
    ;       EXIT:   None
    ;
    ;       USES:   EAX, Flags
    ;

      MOV     AX,AddressHigh               ; high word of address
      MOV     BX,AddressLow                ; low word of address
      MOV     DL,DevHlp_CreateSpinLock     ;
      CALL    DevHlp
      JC      Error