]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - arch/i386/boot/setup.S
[PATCH] arch/i386/mm/fault.c: fix sparse warnings
[linux-2.6.git] / arch / i386 / boot / setup.S
index a934ab32bf8e4fcdcc586ff99a075febe8391269..caa1fde6904edc89eccdf49e693d8576aa9feecc 100644 (file)
@@ -164,7 +164,7 @@ ramdisk_max:        .long (-__PAGE_OFFSET-(512 << 20)-1) & 0x7fffffff
 trampoline:    call    start_of_setup
                .align 16
                                        # The offset at this point is 0x240
-               .space  (0x7ff-0x240+1) # E820 & EDD space (ending at 0x7ff)
+               .space  (0xeff-0x240+1) # E820 & EDD space (ending at 0xeff)
 # End of setup header #####################################################
 
 start_of_setup:
@@ -333,9 +333,9 @@ jmpe820:
        # sizeof(e820rec).
        #
 good820:
-       movb    (E820NR), %al                   # up to 32 entries
+       movb    (E820NR), %al                   # up to 128 entries
        cmpb    $E820MAX, %al
-       jnl     bail820
+       jae     bail820
 
        incb    (E820NR)
        movw    %di, %ax