• Kumar Gala's avatar
    85xx: Fix addrmap to include memory · e393e2e9
    Kumar Gala authored
    
    
    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: default avatarKumar Gala <galak@kernel.crashing.org>
    e393e2e9
tlb.c 4.35 KB