Hello,

when testing my --force-bpb patch to boot from zip (see next mail), I
noticed that --force-lba does not work in stage2.  If --force-lba is
set, stage2 will never use lba.

The fix is simple, see attached patch.  Should I check it in?

  Jochen

diff -ur grub/stage2/asm.S grub-zipboot/stage2/asm.S
--- grub/stage2/asm.S   Thu Jul  6 17:30:25 2000
+++ grub-zipboot/stage2/asm.S   Tue Jul 25 20:27:17 2000
@@ -1082,15 +1082,15 @@
        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:

Reply via email to