Merge branch 'x86/boot' into x86/urgent
Merge branch that got ready. Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
commit
dc5fb575df
2 changed files with 4 additions and 5 deletions
|
@ -406,7 +406,7 @@ Protocol: 2.00+
|
||||||
- If 0, the protected-mode code is loaded at 0x10000.
|
- If 0, the protected-mode code is loaded at 0x10000.
|
||||||
- If 1, the protected-mode code is loaded at 0x100000.
|
- If 1, the protected-mode code is loaded at 0x100000.
|
||||||
|
|
||||||
Bit 1 (kernel internal): ALSR_FLAG
|
Bit 1 (kernel internal): KASLR_FLAG
|
||||||
- Used internally by the compressed kernel to communicate
|
- Used internally by the compressed kernel to communicate
|
||||||
KASLR status to kernel proper.
|
KASLR status to kernel proper.
|
||||||
If 1, KASLR enabled.
|
If 1, KASLR enabled.
|
||||||
|
|
|
@ -461,19 +461,18 @@ static void __init e820_reserve_setup_data(void)
|
||||||
{
|
{
|
||||||
struct setup_data *data;
|
struct setup_data *data;
|
||||||
u64 pa_data;
|
u64 pa_data;
|
||||||
int found = 0;
|
|
||||||
|
|
||||||
pa_data = boot_params.hdr.setup_data;
|
pa_data = boot_params.hdr.setup_data;
|
||||||
|
if (!pa_data)
|
||||||
|
return;
|
||||||
|
|
||||||
while (pa_data) {
|
while (pa_data) {
|
||||||
data = early_memremap(pa_data, sizeof(*data));
|
data = early_memremap(pa_data, sizeof(*data));
|
||||||
e820_update_range(pa_data, sizeof(*data)+data->len,
|
e820_update_range(pa_data, sizeof(*data)+data->len,
|
||||||
E820_RAM, E820_RESERVED_KERN);
|
E820_RAM, E820_RESERVED_KERN);
|
||||||
found = 1;
|
|
||||||
pa_data = data->next;
|
pa_data = data->next;
|
||||||
early_memunmap(data, sizeof(*data));
|
early_memunmap(data, sizeof(*data));
|
||||||
}
|
}
|
||||||
if (!found)
|
|
||||||
return;
|
|
||||||
|
|
||||||
sanitize_e820_map(e820.map, ARRAY_SIZE(e820.map), &e820.nr_map);
|
sanitize_e820_map(e820.map, ARRAY_SIZE(e820.map), &e820.nr_map);
|
||||||
memcpy(&e820_saved, &e820, sizeof(struct e820map));
|
memcpy(&e820_saved, &e820, sizeof(struct e820map));
|
||||||
|
|
Loading…
Add table
Reference in a new issue