Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356226
b: refs/heads/master
c: 9710f58
h: refs/heads/master
v: v3
  • Loading branch information
Yinghai Lu authored and H. Peter Anvin committed Nov 17, 2012
1 parent 53f4729 commit 9e014da
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 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: 600cc5b7f6371706679490d7ee108015ae57ac2f
refs/heads/master: 9710f581bb4c35589ac046b0cfc0deb7f369fc85
16 changes: 15 additions & 1 deletion trunk/arch/x86/kernel/e820.c
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ static int __init parse_memopt(char *p)
}
early_param("mem", parse_memopt);

static int __init parse_memmap_opt(char *p)
static int __init parse_memmap_one(char *p)
{
char *oldp;
u64 start_at, mem_size;
Expand Down Expand Up @@ -877,6 +877,20 @@ static int __init parse_memmap_opt(char *p)

return *p == '\0' ? 0 : -EINVAL;
}
static int __init parse_memmap_opt(char *str)
{
while (str) {
char *k = strchr(str, ',');

if (k)
*k++ = 0;

parse_memmap_one(str);
str = k;
}

return 0;
}
early_param("memmap", parse_memmap_opt);

void __init finish_e820_parsing(void)
Expand Down

0 comments on commit 9e014da

Please sign in to comment.