ppc/85xx: Fix bug in setup_mp code
authorKumar Gala <galak@kernel.crashing.org>
Thu, 3 Sep 2009 13:41:31 +0000 (08:41 -0500)
committerTom Rix <Tom.Rix@windriver.com>
Sat, 3 Oct 2009 14:04:16 +0000 (09:04 -0500)
commiteb0a2cc9e3486e0ca9d557abe5faa50f161331f2
tree127cbcde207e53d98749362a4c73603c5d7275d1
parent176c84efc5760a78deb3f68bd23a987d26b6f099
ppc/85xx: Fix bug in setup_mp code

Its possible that we try and copy the boot page code out of flash into a
DDR location that doesn't have a TLB cover it.  For example, if we have
3G of DDR we typically only map the first 2G.  In the cases of 4G+ this
wasn't an issue since the reset page TLB mapping covered the last page
of memory which we wanted to copy to.

We now change the physical address of the reset page TLB to map to the
true physical location of the boot page code, copy and than set the
TLB back to its 1:1 mapping of the reset page.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
cpu/mpc85xx/mp.c