Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28772
b: refs/heads/master
c: 8a30088
h: refs/heads/master
v: v3
  • Loading branch information
Jon Loeliger authored and Paul Mackerras committed Jun 21, 2006
1 parent 920cfd9 commit 09071ef
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 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: 2198c070498850c16d65c09bc587e3f5042126ef
refs/heads/master: 8a30088794ff426cd3e21557db8f3d2687ac6695
13 changes: 11 additions & 2 deletions trunk/arch/powerpc/kernel/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -1267,13 +1267,16 @@ static void __init early_reserve_mem(void)
{
u64 base, size;
u64 *reserve_map;
unsigned long self_base;
unsigned long self_size;

reserve_map = (u64 *)(((unsigned long)initial_boot_params) +
initial_boot_params->off_mem_rsvmap);

/* before we do anything, lets reserve the dt blob */
lmb_reserve(__pa((unsigned long)initial_boot_params),
initial_boot_params->totalsize);
self_base = __pa((unsigned long)initial_boot_params);
self_size = initial_boot_params->totalsize;
lmb_reserve(self_base, self_size);

#ifdef CONFIG_PPC32
/*
Expand All @@ -1289,6 +1292,9 @@ static void __init early_reserve_mem(void)
size_32 = *(reserve_map_32++);
if (size_32 == 0)
break;
/* skip if the reservation is for the blob */
if (base_32 == self_base && size_32 == self_size)
continue;
DBG("reserving: %x -> %x\n", base_32, size_32);
lmb_reserve(base_32, size_32);
}
Expand All @@ -1300,6 +1306,9 @@ static void __init early_reserve_mem(void)
size = *(reserve_map++);
if (size == 0)
break;
/* skip if the reservation is for the blob */
if (base == self_base && size == self_size)
continue;
DBG("reserving: %llx -> %llx\n", base, size);
lmb_reserve(base, size);
}
Expand Down

0 comments on commit 09071ef

Please sign in to comment.