Rev 91 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 91 | Rev 95 | ||
---|---|---|---|
Line 127... | Line 127... | ||
127 | mov eax,[eax+0x3000+4] |
127 | mov eax,[eax+0x3000+4] |
128 | mov [hd1_status],eax |
128 | mov [hd1_status],eax |
129 | pop eax |
129 | pop eax |
130 | sti |
130 | sti |
131 | ret |
131 | ret |
- | 132 | ;******************************************** |
|
- | 133 | reserve_hd_channel: |
|
- | 134 | cmp [hdbase], 0x1F0 |
|
- | 135 | jne .IDE_Channel_2 |
|
- | 136 | .IDE_Channel_1: |
|
- | 137 | cli |
|
- | 138 | cmp [IDE_Channel_1],0 |
|
- | 139 | je .reserve_ok_1 |
|
- | 140 | sti |
|
- | 141 | call change_task |
|
- | 142 | jmp .IDE_Channel_1 |
|
- | 143 | .IDE_Channel_2: |
|
- | 144 | cli |
|
- | 145 | cmp [IDE_Channel_2],0 |
|
- | 146 | je .reserve_ok_2 |
|
- | 147 | sti |
|
- | 148 | call change_task |
|
- | 149 | jmp .IDE_Channel_1 |
|
- | 150 | .reserve_ok_1: |
|
- | 151 | mov [IDE_Channel_1],1 |
|
- | 152 | ret |
|
- | 153 | .reserve_ok_2: |
|
- | 154 | mov [IDE_Channel_2],1 |
|
- | 155 | ret |
|
Line -... | Line 156... | ||
- | 156 | ||
- | 157 | free_hd_channel: |
|
- | 158 | cmp [hdbase], 0x1F0 |
|
- | 159 | jne .IDE_Channel_2 |
|
- | 160 | .IDE_Channel_1: |
|
132 | 161 | mov [IDE_Channel_1],0 |
|
- | 162 | ret |
|
- | 163 | .IDE_Channel_2: |
|
- | 164 | mov [IDE_Channel_2],0 |
|
- | 165 | ret |
|
133 | 166 | ;******************************************** |
|
Line 134... | Line 167... | ||
134 | clear_hd_cache: |
167 | clear_hd_cache: |
135 | 168 | ||
136 | push eax ecx edi |
169 | push eax ecx edi |