Ignore:
Timestamp:
Oct 2, 2012, 9:56:32 AM (13 years ago)
Author:
Markus Thielen
Message:

fixed #13 (kernel exit call for trap dumps)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/os2ahci/init.asm

    r133 r141  
    1414                PUBLIC  _asm_strat           ; low-level strategy routine
    1515                PUBLIC  _asm_idc_entry       ; low-level IDC entry point
     16                PUBLIC  _asm_krnl_exit       ; low-level kernel exit routine
    1617                PUBLIC  _readl               ; MMIO read (32 bits)
    1718                PUBLIC  _writel              ; MMIO write (32 bits)
     
    9192                EXTRN   _reset_ctxhook : NEAR     ; C reset context hook
    9293                EXTRN   _engine_ctxhook : NEAR    ; C engine context hook
     94                EXTRN   _apm_suspend : NEAR       ; C routine for INT13 IO enable
    9395_TEXT           ENDS
    9496
     
    152154                RET
    153155_asm_idc_entry  ENDP
     156
     157;  Kernel exit routine to enable INT13 I/O (called before a trap dump occurrs)
     158_asm_krnl_exit  PROC    FAR
     159
     160                PUSH    ES
     161                PUSH    DS
     162                MOV     AX,DGROUP
     163                MOV     DS,AX
     164                CLD
     165
     166                ;  call C routine
     167                CALL    _apm_suspend
     168
     169                POP     DS
     170                POP     ES
     171
     172                RET
     173_asm_krnl_exit  ENDP       
     174       
    154175
    155176                .386
Note: See TracChangeset for help on using the changeset viewer.