Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Paul Burton's avatar
    6fd596a1
    MIPS: Fix map_physmem for cached mappings · 6fd596a1
    Paul Burton authored
    
    map_physmem should return a pointer that can be used by the CPU to
    access the given memory - on MIPS simply returning the physical address
    as it does prior to this patch doesn't achieve that. Instead return a
    pointer to the memory within (c)kseg0, which matches up consistently
    with the (c)kseg1 pointer that uncached mappings return via ioremap.
    
    Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
    6fd596a1
    History
    MIPS: Fix map_physmem for cached mappings
    Paul Burton authored
    
    map_physmem should return a pointer that can be used by the CPU to
    access the given memory - on MIPS simply returning the physical address
    as it does prior to this patch doesn't achieve that. Instead return a
    pointer to the memory within (c)kseg0, which matches up consistently
    with the (c)kseg1 pointer that uncached mappings return via ioremap.
    
    Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>