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:
parent
66e9b71250
commit
81faaf6c56
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue