From 1e402724c6d9148b5983884bf6a5934fefc02da8 Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 27 Jul 2000 09:04:06 +0000 Subject: [PATCH] Fixed the effect of the --force-lba switch in stage2/stage1_5. --- ChangeLog | 5 +++++ stage2/asm.S | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1194a701c..c3ef5e0eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-07-27 Jochen Hoenicke + + * stage2/asm.S (check_int13_extensions): Fixed the effect of + the --force-lba switch in stage2/stage1_5. + 2000-07-25 Jochen Hoenicke * stage2/fsys_fat.c (fat_mount): Fixed calculation of num_clust. diff --git a/stage2/asm.S b/stage2/asm.S index d0bad03a3..e62a1b0a8 100644 --- a/stage2/asm.S +++ b/stage2/asm.S @@ -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: