Fixed the effect of the --force-lba switch in stage2/stage1_5.

This commit is contained in:
jochen 2000-07-27 09:04:06 +00:00
parent eef046d8a5
commit 1e402724c6
2 changed files with 10 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2000-07-27 Jochen Hoenicke <jochen@gnu.org>
* stage2/asm.S (check_int13_extensions): Fixed the effect of
the --force-lba switch in stage2/stage1_5.
2000-07-25 Jochen Hoenicke <jochen@gnu.org>
* stage2/fsys_fat.c (fat_mount): Fixed calculation of num_clust.

View file

@ -1082,15 +1082,15 @@ ENTRY(check_int13_extensions)
cmpw $0xaa55, %bx
jne 1f
movb %ah, %bl /* save the major version into %bl */
/* check if AH=0x42 is supported if FORCE_LBA is zero */
movb EXT_C(force_lba), %al
testb %al, %al
jnz 1f
jnz 2f
andw $1, %cx
jz 1f
movb %ah, %bl /* save the major version into %bl */
jmp 2f
jnz 2f
1:
xorb %bl, %bl
2: