]> git.baikalelectronics.ru Git - kernel.git/commit
wii: bootwrapper: add fixup to calc useable mem2
authorAlbert Herranz <albert_herranz@yahoo.es>
Sat, 12 Dec 2009 06:31:52 +0000 (06:31 +0000)
committerGrant Likely <grant.likely@secretlab.ca>
Sun, 13 Dec 2009 05:24:31 +0000 (22:24 -0700)
commit56e4fb7645b09ff86e6288202ad115c81da64ae8
tree94e869d9ee34dd0b0075883aa202956749d76ae1
parentf464f5ac64c4723df05e93600eff7e0a1ce30d98
wii: bootwrapper: add fixup to calc useable mem2

The top portion of MEM2 (the second 64MB memory block) in the Nintendo
Wii video game console is used by the firmware running on the Starlet
processor.

Add code to calculate the portion of MEM2 safely useable by the
Broadway processor. When running under the 'mini' firmware this is
easily determined from an in-memory header. Otherwise, a safe default
is used.

Signed-off-by: Albert Herranz <albert_herranz@yahoo.es>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
arch/powerpc/boot/wii.c