mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 14:59:34 +00:00
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:
1 parent
66e9b71250
commit
81faaf6c56
1 file changed
+5
@@ -776,6 +776,11 @@ FUNCTION(grub_biosdisk_get_diskinfo_int13_extensions)
|
|||||||
movw %cx, %ax
|
movw %cx, %ax
|
||||||
movw %bx, %ds
|
movw %bx, %ds
|
||||||
int $0x13 /* do the operation */
|
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 */
|
movb %ah, %bl /* save return value in %bl */
|
||||||
/* back to protected mode */
|
/* back to protected mode */
|
||||||
DATA32 call real_to_prot
|
DATA32 call real_to_prot
|
||||||
|
|||||||
Reference in new issue
Block a user