Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177866
b: refs/heads/master
c: 659da2b
h: refs/heads/master
v: v3
  • Loading branch information
Wu Zhangjin authored and Ralf Baechle committed Dec 17, 2009
1 parent 8ecbc14 commit b7cc63c
Show file tree
Hide file tree
Showing 2 changed files with 9 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: c1b14a7545e26fc08ea524b58ac590304484ce4f
refs/heads/master: 659da2ba3ebf53dc49f7f9a357a1aef046bf3139
8 changes: 8 additions & 0 deletions trunk/arch/mips/loongson/common/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,22 @@

#include <loongson.h>
#include <mem.h>
#include <pci.h>

void __init prom_init_memory(void)
{
add_memory_region(0x0, (memsize << 20), BOOT_MEM_RAM);

add_memory_region(memsize << 20, LOONGSON_PCI_MEM_START - (memsize <<
20), BOOT_MEM_RESERVED);
#ifdef CONFIG_64BIT
if (highmemsize > 0)
add_memory_region(LOONGSON_HIGHMEM_START,
highmemsize << 20, BOOT_MEM_RAM);

add_memory_region(LOONGSON_PCI_MEM_END + 1, LOONGSON_HIGHMEM_START -
LOONGSON_PCI_MEM_END - 1, BOOT_MEM_RESERVED);

#endif /* CONFIG_64BIT */
}

Expand Down

0 comments on commit b7cc63c

Please sign in to comment.