Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100009
b: refs/heads/master
c: 0be1552
h: refs/heads/master
i:
  100007: 9f63562
v: v3
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Jul 9, 2008
1 parent 9dd6bbb commit d86722f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5dfcf14d5b28174f94cbe9b4fb35d415db61c64a
refs/heads/master: 0be15526beb4c228e0477221c62ec8ab0fc7440f
8 changes: 5 additions & 3 deletions trunk/arch/x86/kernel/e820.c
Original file line number Diff line number Diff line change
Expand Up @@ -1294,8 +1294,6 @@ char *__init default_machine_specific_memory_setup(void)
e820_add_region(HIGH_MEMORY, mem_size << 10, E820_RAM);
}

memcpy(&e820_saved, &e820, sizeof(struct e820map));

/* In case someone cares... */
return who;
}
Expand All @@ -1313,8 +1311,12 @@ char * __init __attribute__((weak)) memory_setup(void)

void __init setup_memory_map(void)
{
char *who;

who = memory_setup();
memcpy(&e820_saved, &e820, sizeof(struct e820map));
printk(KERN_INFO "BIOS-provided physical RAM map:\n");
e820_print_map(memory_setup());
e820_print_map(who);
}

#ifdef CONFIG_X86_64
Expand Down

0 comments on commit d86722f

Please sign in to comment.