]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
85xx: Fix addrmap to include memory
authorKumar Gala <galak@kernel.crashing.org>
Fri, 14 Aug 2009 21:43:22 +0000 (16:43 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 14 Aug 2009 22:42:05 +0000 (17:42 -0500)
commite393e2e9bc5cd3d5484e193d1380e7cd7587ab5c
treec738ad209e4434b0e638fff24f296a7dbd8966f2
parent7dedefdf749ff02c1086f7ddb8cb83a77b00d030
85xx: Fix addrmap to include memory

When we init the addrmap based on the TLB we will not end up getting
the TLB that covers memory if we are using SPD.  The reason is we
haven't relocated at the point that we setup the memory TLB and thus it
will not get setup in the addrmap.

Instead we can just walk over the TLB array after we've relocated and
see all the TLBs that have been set and use that information to populate
the initial addrmap.  By doing this we insure that we get the TLB
entries that cover memory.

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