Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356190
b: refs/heads/master
c: 4eea6aa
h: refs/heads/master
v: v3
  • Loading branch information
Jacob Shin authored and H. Peter Anvin committed Nov 17, 2012
1 parent 3579bb8 commit 29e3a6c
Show file tree
Hide file tree
Showing 2 changed files with 15 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: dd7dfad7fb297b1746bcdbebbdc970d723a635bd
refs/heads/master: 4eea6aa581abfeb2695ebe9f9d4672597e1bdd4b
14 changes: 14 additions & 0 deletions trunk/arch/x86/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,20 @@ void __init setup_arch(char **cmdline_p)
insert_resource(&iomem_resource, &data_resource);
insert_resource(&iomem_resource, &bss_resource);

/*
* Complain if .text .data and .bss are not marked as E820_RAM and
* attempt to fix it by adding the range. We may have a confused BIOS,
* or the user may have incorrectly supplied it via memmap=exactmap. If
* we really are running on top non-RAM, we will crash later anyways.
*/
if (!e820_all_mapped(code_resource.start, __pa(__brk_limit), E820_RAM)) {
pr_warn(".text .data .bss are not marked as E820_RAM!\n");

e820_add_region(code_resource.start,
__pa(__brk_limit) - code_resource.start + 1,
E820_RAM);
}

trim_bios_range();
#ifdef CONFIG_X86_32
if (ppro_with_ram_bug()) {
Expand Down

0 comments on commit 29e3a6c

Please sign in to comment.