2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>

* kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
	Ignore return status if CF is cleared.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2009-11-09 23:51:01 +01:00
parent 66e9b71250
commit 81faaf6c56

View file

@ -776,6 +776,11 @@ FUNCTION(grub_biosdisk_get_diskinfo_int13_extensions)
movw %cx, %ax
movw %bx, %ds
int $0x13 /* do the operation */
jc noclean
/* Clean return value if carry isn't set to workaround
some buggy BIOSes. */
xor %ax, %ax
noclean:
movb %ah, %bl /* save return value in %bl */
/* back to protected mode */
DATA32 call real_to_prot