Re: [PATCH] zero-size E820 memory (kernel start-up failure)

From: Dave Jones (davej@codemonkey.org.uk)
Date: Fri Dec 20 2002 - 07:54:00 EST


On Fri, Dec 20, 2002 at 12:02:57PM +0100, Alexander Achenbach wrote:

> Up to 2.4.20, a zero-size E820 memory region (eg 0xa0000 - 0xa0000)
> reported by the BIOS causes 'sanitize_e820_map' to take the end of this
> region as the start of another region, producing two overlapping regions
> extending to the end of addressable memory. If the zero-size region is of
> a higher type than 'usable RAM' (eg 'reserved'), this causes all memory
> above the zero-size region to be marked unusable (leaving 640k as of the
> above example -- the kernel fails to start at all).
>
> The patch adds code to remove empty entries before sorting regions. It
> was generated for a 2.4.20 kernel.

Looks good to me. Care to do a similar patch for 2.5 ?

                Dave

-- 
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Dec 23 2002 - 22:00:26 EST