Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99994
b: refs/heads/master
c: d9a81b4
h: refs/heads/master
v: v3
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Jul 8, 2008
1 parent f9bcfc9 commit 21134fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4fcc545a7479135332f511a54611820c9f4208a0
refs/heads/master: d9a81b4411d53196c4535c3a1258cb03d945c718
5 changes: 5 additions & 0 deletions trunk/arch/x86/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ static void __init reserve_setup_data(void)
struct setup_data *data;
u64 pa_data;
char buf[32];
int found = 0;

if (boot_params.hdr.version < 0x0209)
return;
Expand All @@ -409,9 +410,13 @@ static void __init reserve_setup_data(void)
reserve_early(pa_data, pa_data+sizeof(*data)+data->len, buf);
e820_update_range(pa_data, sizeof(*data)+data->len,
E820_RAM, E820_RESERVED_KERN);
found = 1;
pa_data = data->next;
early_iounmap(data, sizeof(*data));
}
if (!found)
return;

sanitize_e820_map(e820.map, ARRAY_SIZE(e820.map), &e820.nr_map);
printk(KERN_INFO "extended physical RAM map:\n");
e820_print_map("reserve setup_data");
Expand Down

0 comments on commit 21134fe

Please sign in to comment.