Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25949
b: refs/heads/master
c: fde3505
h: refs/heads/master
i:
  25947: a6a9105
v: v3
  • Loading branch information
Ralf Baechle committed Apr 19, 2006
1 parent 2d74b4d commit a9b564a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 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: 9c1f1257a364467d091c5166049addaf3e7d7118
refs/heads/master: fde3505c695e0de8ae7504b58d373db2d0ba498a
5 changes: 3 additions & 2 deletions trunk/arch/mips/mips-boards/generic/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/bootmem.h>
#include <linux/pfn.h>
#include <linux/string.h>

#include <asm/bootinfo.h>
Expand Down Expand Up @@ -104,10 +105,10 @@ struct prom_pmemblock * __init prom_getmdesc(void)

mdesc[3].type = yamon_dontuse;
mdesc[3].base = 0x00100000;
mdesc[3].size = CPHYSADDR(PAGE_ALIGN((unsigned long)&_end)) - mdesc[3].base;
mdesc[3].size = CPHYSADDR(PFN_ALIGN((unsigned long)&_end)) - mdesc[3].base;

mdesc[4].type = yamon_free;
mdesc[4].base = CPHYSADDR(PAGE_ALIGN(&_end));
mdesc[4].base = CPHYSADDR(PFN_ALIGN(&_end));
mdesc[4].size = memsize - mdesc[4].base;

return &mdesc[0];
Expand Down
5 changes: 3 additions & 2 deletions trunk/arch/mips/mips-boards/sim/sim_mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/bootmem.h>
#include <linux/pfn.h>

#include <asm/bootinfo.h>
#include <asm/page.h>
Expand Down Expand Up @@ -59,10 +60,10 @@ struct prom_pmemblock * __init prom_getmdesc(void)

mdesc[2].type = simmem_reserved;
mdesc[2].base = 0x00100000;
mdesc[2].size = CPHYSADDR(PAGE_ALIGN(&_end)) - mdesc[2].base;
mdesc[2].size = CPHYSADDR(PFN_ALIGN(&_end)) - mdesc[2].base;

mdesc[3].type = simmem_free;
mdesc[3].base = CPHYSADDR(PAGE_ALIGN(&_end));
mdesc[3].base = CPHYSADDR(PFN_ALIGN(&_end));
mdesc[3].size = memsize - mdesc[3].base;

return &mdesc[0];
Expand Down

0 comments on commit a9b564a

Please sign in to comment.