]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
x86 boot: change sanitize_e820_map parameter from byte to int to allow bigger memory...
authorPaul Jackson <pj@sgi.com>
Wed, 14 May 2008 15:15:46 +0000 (08:15 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 25 May 2008 08:55:11 +0000 (10:55 +0200)
commit6e9bcc796b120d17b08dde7ab958b82ddb899889
treee7cecb5a49f875beae9b6aff6bb44777be714430
parent028b785888c523baccdf27af0cdbf1deb92edec0
x86 boot: change sanitize_e820_map parameter from byte to int to allow bigger memory maps

The map size counter passed into, and back out of, sanitize_e820_map(),
was an eight bit type (char or u8), as derived from its origins in
legacy BIOS E820 structures.  This patch changes that type to an 'int',
to allow this sanitize routine to also be used on larger maps (larger
than the 256 count that fits in a char).  The legacy BIOS E820 interface
of course does not change; that remains at 8 bits for this count, holding
up to E820MAX == 128 entries.  But the kernel internals can handle more
when those additional memory map entries are passed from the BIOS via
EFI interfaces.

Signed-off-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/e820.c
arch/x86/kernel/e820_64.c
arch/x86/mach-default/setup.c
arch/x86/mach-voyager/setup.c
include/asm-x86/e820.h