Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113206
b: refs/heads/master
c: 48c1fd3
h: refs/heads/master
v: v3
  • Loading branch information
Marco Stornelli authored and Haavard Skinnemoen committed Sep 22, 2008
1 parent 3fc039b commit ed17cc6
Show file tree
Hide file tree
Showing 2 changed files with 20 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: 3d256151471ba9fd60a5b896a706eb21a6b1cea1
refs/heads/master: 48c1fd3882286fd9e978ca8725013f2e060b700e
19 changes: 19 additions & 0 deletions trunk/arch/avr32/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,25 @@ static int __init early_parse_fbmem(char *p)
}
early_param("fbmem", early_parse_fbmem);

/*
* Pick out the memory size. We look for mem=size@start,
* where start and size are "size[KkMmGg]"
*/
static int __init early_mem(char *p)
{
resource_size_t size, start;

start = system_ram->start;
size = memparse(p, &p);
if (*p == '@')
start = memparse(p + 1, &p);

system_ram->start = start;
system_ram->end = system_ram->start + size - 1;
return 0;
}
early_param("mem", early_mem);

static int __init parse_tag_core(struct tag *tag)
{
if (tag->hdr.size > 2) {
Expand Down

0 comments on commit ed17cc6

Please sign in to comment.