diff options
author | Bernhard Walle <bwalle@suse.de> | 2008-06-27 07:12:55 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-08 11:55:42 -0400 |
commit | 5dfcf14d5b28174f94cbe9b4fb35d415db61c64a (patch) | |
tree | d5e6c47d8a635e07b3dfb3c115f8cae34fc7c553 /include/asm-x86/e820.h | |
parent | 69ac9cd629ca96e59f34eb4ccd12d00b2c8276a7 (diff) |
x86: use FIRMWARE_MEMMAP on x86/E820
This patch uses the /sys/firmware/memmap interface provided in the last patch
on the x86 architecture when E820 is used. The patch copies the E820
memory map very early, and registers the E820 map afterwards via
firmware_map_add_early().
Signed-off-by: Bernhard Walle <bwalle@suse.de>
Acked-by: Greg KH <gregkh@suse.de>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Cc: kexec@lists.infradead.org
Cc: yhlu.kernel@gmail.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/e820.h')
-rw-r--r-- | include/asm-x86/e820.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-x86/e820.h b/include/asm-x86/e820.h index 4b26604b3c19..a20d0a7f5892 100644 --- a/include/asm-x86/e820.h +++ b/include/asm-x86/e820.h | |||
@@ -59,7 +59,9 @@ struct e820map { | |||
59 | struct e820entry map[E820_X_MAX]; | 59 | struct e820entry map[E820_X_MAX]; |
60 | }; | 60 | }; |
61 | 61 | ||
62 | /* see comment in arch/x86/kernel/e820.c */ | ||
62 | extern struct e820map e820; | 63 | extern struct e820map e820; |
64 | extern struct e820map e820_saved; | ||
63 | 65 | ||
64 | extern int e820_any_mapped(u64 start, u64 end, unsigned type); | 66 | extern int e820_any_mapped(u64 start, u64 end, unsigned type); |
65 | extern int e820_all_mapped(u64 start, u64 end, unsigned type); | 67 | extern int e820_all_mapped(u64 start, u64 end, unsigned type); |