Second part of the LBA fix
This commit is contained in:
parent
0d67b44378
commit
6ee8daeead
2 changed files with 6 additions and 0 deletions
|
@ -2,4 +2,5 @@
|
||||||
|
|
||||||
* kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
|
* kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
|
||||||
Ignore return status if CF is cleared.
|
Ignore return status if CF is cleared.
|
||||||
|
(grub_biosdisk_get_diskinfo_standard): Likewise.
|
||||||
|
|
||||||
|
|
|
@ -824,6 +824,11 @@ FUNCTION(grub_biosdisk_get_diskinfo_standard)
|
||||||
.code16
|
.code16
|
||||||
movb $0x8, %ah
|
movb $0x8, %ah
|
||||||
int $0x13 /* do the operation */
|
int $0x13 /* do the operation */
|
||||||
|
jc noclean2
|
||||||
|
/* Clean return value if carry isn't set to workaround
|
||||||
|
some buggy BIOSes. */
|
||||||
|
xor %ax, %ax
|
||||||
|
noclean2:
|
||||||
/* check if successful */
|
/* check if successful */
|
||||||
testb %ah, %ah
|
testb %ah, %ah
|
||||||
jnz 1f
|
jnz 1f
|
||||||
|
|
Loading…
Reference in a new issue