Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 153802
b: refs/heads/master
c: fa254ec
h: refs/heads/master
v: v3
  • Loading branch information
Mike Frysinger authored and David Woodhouse committed Jun 5, 2009
1 parent 04940d5 commit 7d9694a
Show file tree
Hide file tree
Showing 2 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: c3a9f35673290f49ec115d36ad283961c82c135a
refs/heads/master: fa254ecbcca713a4aec99478e79f858942b3d4e0
10 changes: 6 additions & 4 deletions trunk/drivers/mtd/maps/uclinux.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@

/****************************************************************************/

extern char _ebss;

struct map_info uclinux_ram_map = {
.name = "RAM",
.phys = (unsigned long)&_ebss,
.size = 0,
};

struct mtd_info *uclinux_ram_mtdinfo;
Expand Down Expand Up @@ -55,12 +59,10 @@ static int __init uclinux_mtd_init(void)
{
struct mtd_info *mtd;
struct map_info *mapp;
extern char _ebss;
unsigned long addr = (unsigned long) &_ebss;

mapp = &uclinux_ram_map;
mapp->phys = addr;
mapp->size = PAGE_ALIGN(ntohl(*((unsigned long *)(addr + 8))));
if (!mapp->size)
mapp->size = PAGE_ALIGN(ntohl(*((unsigned long *)(mapp->phys + 8))));
mapp->bankwidth = 4;

printk("uclinux[mtd]: RAM probe address=0x%x size=0x%x\n",
Expand Down

0 comments on commit 7d9694a

Please sign in to comment.