diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-06-30 19:20:54 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-08 07:16:14 -0400 |
commit | 28bb22379513ca3cac9d13766064a219c5fc21a9 (patch) | |
tree | e9b870bf99adbbb58e13c454a78366ff83292982 /include/asm-x86 | |
parent | 102d0a4b56d94e9b7eedfdfb488400271235543f (diff) |
x86: move reserve_setup_data to setup.c
Ying Huang would like setup_data to be reserved, but not included in the
no save range.
Here we try to modify the e820 table to reserve that range early.
also add that in early_res in case bootloader messes up with the ramdisk.
other solution would be
1. add early_res_to_highmem...
2. early_res_to_e820...
but they could reserve another type memory wrongly, if early_res has some
resource reserved early, and not needed later, but it is not removed from
early_res in time. Like the RAMDISK (already handled).
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Cc: andi@firstfloor.org
Tested-by: Huang, Ying <ying.huang@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86')
-rw-r--r-- | include/asm-x86/bootparam.h | 2 | ||||
-rw-r--r-- | include/asm-x86/e820.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/asm-x86/bootparam.h b/include/asm-x86/bootparam.h index 6eeba3b2812b..ae22bdf0ab14 100644 --- a/include/asm-x86/bootparam.h +++ b/include/asm-x86/bootparam.h | |||
@@ -108,6 +108,4 @@ struct boot_params { | |||
108 | __u8 _pad9[276]; /* 0xeec */ | 108 | __u8 _pad9[276]; /* 0xeec */ |
109 | } __attribute__((packed)); | 109 | } __attribute__((packed)); |
110 | 110 | ||
111 | void reserve_setup_data(void); | ||
112 | |||
113 | #endif /* _ASM_BOOTPARAM_H */ | 111 | #endif /* _ASM_BOOTPARAM_H */ |
diff --git a/include/asm-x86/e820.h b/include/asm-x86/e820.h index f622685c9af8..45e904fe4076 100644 --- a/include/asm-x86/e820.h +++ b/include/asm-x86/e820.h | |||
@@ -44,6 +44,9 @@ | |||
44 | #define E820_ACPI 3 | 44 | #define E820_ACPI 3 |
45 | #define E820_NVS 4 | 45 | #define E820_NVS 4 |
46 | 46 | ||
47 | /* reserved RAM used by kernel itself */ | ||
48 | #define E820_RESERVED_KERN 128 | ||
49 | |||
47 | #ifndef __ASSEMBLY__ | 50 | #ifndef __ASSEMBLY__ |
48 | struct e820entry { | 51 | struct e820entry { |
49 | __u64 addr; /* start of memory segment */ | 52 | __u64 addr; /* start of memory segment */ |