]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
i386: Remove needless ADDR32 prefixes when address is known and fixed.
authorVladimir Serbinenko <phcoder@gmail.com>
Sat, 21 Feb 2015 16:38:56 +0000 (17:38 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Sat, 21 Feb 2015 16:38:56 +0000 (17:38 +0100)
Shaves off 6 bytes in lzma_decompress.img.

grub-core/boot/i386/pc/startup_raw.S
grub-core/kern/i386/realmode.S

index 0f8806cd1a9f80f8d7228672145e50b31c15c571..8bce7985c33b65e3d6e23b818b1f8c91708d8a1b 100644 (file)
@@ -89,7 +89,7 @@ LOCAL (codestart):
        sti             /* we're safe again */
 
        /* save the boot drive */
-       ADDR32  movb    %dl, LOCAL(boot_drive)
+       movb    %dl, LOCAL(boot_drive)
 
        /* reset disk system (%ah = 0) */
        int     $0x13
index 732697c71db25ad0e4ddc6735dc4860cc69205a7..1384d5220b193c82f5bd4e991f1a2edffbf29e06 100644 (file)
@@ -137,7 +137,7 @@ real_to_prot:
        /* load the GDT register */
        xorw    %ax, %ax
        movw    %ax, %ds
-       ADDR32 lgdtl    gdtdesc
+       lgdtl   gdtdesc
 
        /* turn on protected mode */
        movl    %cr0, %eax