aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/e820.h
diff options
context:
space:
mode:
authorPaul Jackson <pj@sgi.com>2008-05-14 11:15:46 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-25 04:55:11 -0400
commit6e9bcc796b120d17b08dde7ab958b82ddb899889 (patch)
treee7cecb5a49f875beae9b6aff6bb44777be714430 /include/asm-x86/e820.h
parent028b785888c523baccdf27af0cdbf1deb92edec0 (diff)
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>
Diffstat (limited to 'include/asm-x86/e820.h')
-rw-r--r--include/asm-x86/e820.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-x86/e820.h b/include/asm-x86/e820.h
index ab18457a95c0..1eb13b881437 100644
--- a/include/asm-x86/e820.h
+++ b/include/asm-x86/e820.h
@@ -63,7 +63,7 @@ extern int e820_all_mapped(u64 start, u64 end, unsigned type);
63extern void add_memory_region(u64 start, u64 size, int type); 63extern void add_memory_region(u64 start, u64 size, int type);
64extern void e820_print_map(char *who); 64extern void e820_print_map(char *who);
65extern int 65extern int
66sanitize_e820_map(struct e820entry *biosmap, int max_nr_map, char *pnr_map); 66sanitize_e820_map(struct e820entry *biosmap, int max_nr_map, int *pnr_map);
67extern int copy_e820_map(struct e820entry *biosmap, int nr_map); 67extern int copy_e820_map(struct e820entry *biosmap, int nr_map);
68extern u64 update_memory_range(u64 start, u64 size, unsigned old_type, 68extern u64 update_memory_range(u64 start, u64 size, unsigned old_type,
69 unsigned new_type); 69 unsigned new_type);