Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36056
b: refs/heads/master
c: 1c6fd44
h: refs/heads/master
v: v3
  • Loading branch information
Franck Bui-Huu authored and Ralf Baechle committed Sep 27, 2006
1 parent 6c40a8e commit 7402e34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 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: 8df32c636e785069ba7d223ceb9b72c182902295
refs/heads/master: 1c6fd44d7ed3d105b2eaa29d72b415ca51e40d32
12 changes: 3 additions & 9 deletions trunk/arch/mips/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,9 +473,6 @@ static void __init arch_mem_init(char **cmdline_p)
paging_init();
}

#define MAXMEM HIGHMEM_START
#define MAXMEM_PFN PFN_DOWN(MAXMEM)

static void __init resource_init(void)
{
int i;
Expand All @@ -497,10 +494,10 @@ static void __init resource_init(void)

start = boot_mem_map.map[i].addr;
end = boot_mem_map.map[i].addr + boot_mem_map.map[i].size - 1;
if (start >= MAXMEM)
if (start >= HIGHMEM_START)
continue;
if (end >= MAXMEM)
end = MAXMEM - 1;
if (end >= HIGHMEM_START)
end = HIGHMEM_START - 1;

res = alloc_bootmem(sizeof(struct resource));
switch (boot_mem_map.map[i].type) {
Expand Down Expand Up @@ -529,9 +526,6 @@ static void __init resource_init(void)
}
}

#undef MAXMEM
#undef MAXMEM_PFN

void __init setup_arch(char **cmdline_p)
{
cpu_probe();
Expand Down

0 comments on commit 7402e34

Please sign in to comment.