Jump to content

DevHlp FreeSpinLock: Difference between revisions

From EDM2
Created page with "{{DISPLAYTITLE:DevHlp_FreeSpinLock}} Free a subsystem spinlock. This function frees a subsystem spinlock. ==Parameters== Spinlock handle. ==Return code== Exit ==Example Code== ;Assembly language ; dh_FreeSpinLock - Free a subsystem spinlock ; ; This routine frees a subsystem spinlock. ; ; ENTRY: AX:BX = spinlock handle ; ; EXIT: None ; ; USES: Flags ; hSpinLock dd ?..."
 
Erdmann (talk | contribs)
No edit summary
Line 27: Line 27:
       MOV    AX,hSpinLockHighWord        ; high word of handle
       MOV    AX,hSpinLockHighWord        ; high word of handle
       MOV    BX,hSpinLockLowWord          ; low word of handle
       MOV    BX,hSpinLockLowWord          ; low word of handle
       MOV    DL,DevHlp_FreeSpinLock      ;
       MOV    DL,DevHlp_FreeSpinLock      ; 7Ah
       CALL    DevHlp
       CALL    DevHlp
       JC      Error
       JC      Error


[[Category:DevHlps]]
[[Category:DevHlps]]

Revision as of 13:57, 27 May 2025

Free a subsystem spinlock.

This function frees a subsystem spinlock.

Parameters

Spinlock handle.

Return code

Exit

Example Code

Assembly language
    ;       dh_FreeSpinLock - Free a subsystem spinlock ;
    ;       This routine frees a subsystem spinlock.
    ;
    ;       ENTRY:  AX:BX = spinlock handle
    ;
    ;       EXIT:   None
    ;
    ;       USES:   Flags
    ;

      hSpinLock       dd      ?            ; 16:16
      MOV     AX,hSpinLockHighWord         ; high word of handle
      MOV     BX,hSpinLockLowWord          ; low word of handle
      MOV     DL,DevHlp_FreeSpinLock       ; 7Ah
      CALL    DevHlp
      JC      Error