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)
commit02d748a9ee56735641bade9b734dc2fa9be4df4c
tree94e869d9ee34dd0b0075883aa202956749d76ae1
parentd1d56f8c1d5a622228177eca47e9dcff0498bddb
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