Ignore:
Timestamp:
Feb 16, 2011, 3:39:48 AM (14 years ago)
Author:
chris
Message:
  • ATAPI fixes; still having trouble with INQUIRY command bein sent with incorrect direction
  • fixes to port reset and restart handling
  • improved ATA IDENTIFY handling based on ATA reset signature
File:
1 edited

Legend:

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

    r69 r74  
    5151
    5252_DATA           SEGMENT WORD PUBLIC 'DATA'
    53 readl_dbg_fmt   db      "readl(%04x:%04x) = 0x%08lx [addr %% 0x80 = 0x%02x]"
     53readl_dbg_fmt   db      "readl(%04x:%04x) = 0x%08lx"
    5454                db      10, 0
    55 writel_dbg_fmt  db      "writel(%04x:%04x, 0x%08lx) [addr %% 0x80 = 0x%02x]"
     55writel_dbg_fmt  db      "writel(%04x:%04x, 0x%08lx)"
    5656                db      10, 0
    5757_DATA           ENDS
     
    143143                JB      no_debug
    144144                PUSH    EDX             ; save value read from MMIO port
    145                 MOV     BX, AX          ; addr & 0x7f (port reg index)
    146                 AND     BX, 7FH
    147                 PUSH    BX
    148145                PUSH    EDX             ; value read from MMIO address
    149146                PUSH    AX              ; offset of MMIO address
     
    187184                CMP     _debug, 3
    188185                JB      no_debug2
    189                 MOV     BX, AX          ; addr & 0x7f (port reg index)
    190                 AND     BX, 7FH
    191                 PUSH    BX
    192186                PUSH    EDX             ; value written to MMIO address
    193187                PUSH    AX              ; offset of MMIO address
Note: See TracChangeset for help on using the changeset viewer.