• David S. Miller's avatar
    [SPARC64]: Remove ktlb.S instruction patching. · 1ac4f5eb
    David S. Miller authored
    This was kind of ugly, and actually buggy.  The bug was that
    we didn't handle a machine with memory starting > 4GB.  If
    the 'prompmd' was allocated in physical memory > 4GB we'd
    croak because the obp_iaddr_patch and obp_daddr_patch things
    only supported a 32-bit physical address.
    
    So fix this by just loading the appropriate values from two
    variables in the kernel image, which is locked into the TLB
    and thus accesses to them can't cause a recursive TLB miss.
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    1ac4f5eb
init.c 49.2 KB