fix: ata probe
This commit is contained in:
		
							parent
							
								
									29e5ba8116
								
							
						
					
					
						commit
						67e14345ff
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -103,7 +103,9 @@ ata_probe:
 | 
				
			||||||
	mov bx, ax
 | 
						mov bx, ax
 | 
				
			||||||
	xor ecx, ecx
 | 
						xor ecx, ecx
 | 
				
			||||||
.loop:
 | 
					.loop:
 | 
				
			||||||
 | 
						push ecx
 | 
				
			||||||
	call ata_wait
 | 
						call ata_wait
 | 
				
			||||||
 | 
						pop ecx
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	; select drive
 | 
						; select drive
 | 
				
			||||||
	mov dx, bx
 | 
						mov dx, bx
 | 
				
			||||||
| 
						 | 
					@ -172,7 +174,6 @@ ata_probe:
 | 
				
			||||||
	jmp .drive_found
 | 
						jmp .drive_found
 | 
				
			||||||
@@:
 | 
					@@:
 | 
				
			||||||
.drive_found:
 | 
					.drive_found:
 | 
				
			||||||
 | 
					 | 
				
			||||||
	push ecx
 | 
						push ecx
 | 
				
			||||||
	mov esi, szMsgAtaFound
 | 
						mov esi, szMsgAtaFound
 | 
				
			||||||
	call klog
 | 
						call klog
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue