Changeset 589 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeCommand.asm
- Timestamp:
- May 22, 2016, 12:26:57 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeCommand.asm
r584 r589 33 33 IdeCommand_ResetMasterAndSlaveController: 34 34 ; HSR0: Set_SRST 35 call AccessDPT_GetDeviceControlByteToAL 36 or al, FLG_DEVCONTROL_SRST | FLG_DEVCONTROL_nIEN ; Set Reset bit 35 ; Used to be: 36 ; call AccessDPT_GetDeviceControlByteToAL 37 ; or al, FLG_DEVCONTROL_SRST | FLG_DEVCONTROL_nIEN ; Set Reset bit 38 ; Is now: 39 mov al, FLG_DEVCONTROL_SRST | FLG_DEVCONTROL_nIEN 40 ; --- 37 41 OUTPUT_AL_TO_IDE_CONTROL_BLOCK_REGISTER DEVICE_CONTROL_REGISTER_out 38 42 mov ax, HSR0_RESET_WAIT_US … … 40 44 41 45 ; HSR1: Clear_wait 42 call AccessDPT_GetDeviceControlByteToAL 43 or al, FLG_DEVCONTROL_nIEN 44 and al, ~FLG_DEVCONTROL_SRST ; Clear reset bit 46 ; Used to be: 47 ; call AccessDPT_GetDeviceControlByteToAL 48 ; or al, FLG_DEVCONTROL_nIEN 49 ; and al, ~FLG_DEVCONTROL_SRST ; Clear reset bit 50 ; Is now: 51 mov al, FLG_DEVCONTROL_nIEN 52 ; --- 45 53 OUTPUT_AL_TO_IDE_CONTROL_BLOCK_REGISTER DEVICE_CONTROL_REGISTER_out 46 54 mov ax, HSR1_RESET_WAIT_US … … 51 59 jmp IdeWait_PollStatusFlagInBLwithTimeoutInBH 52 60 61 ; *FIXME* AccessDPT_GetDeviceControlByteToAL currently always returns with 62 ; AL cleared (0) or with only bit 1 set (FLG_DEVCONTROL_nIEN = 2). 63 ; The commented away instructions above sets FLG_DEVCONTROL_nIEN anyway 64 ; making the call to AccessDPT_GetDeviceControlByteToAL redundant. 65 ; I have left this code as is since I don't know if it's a mistake 66 ; (from all the way back to r150) or if it's coded this way in anticipation 67 ; of some future changes to AccessDPT_GetDeviceControlByteToAL. 53 68 54 69 ;--------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.