Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
14252 commits behind the upstream repository.
  • Paul Burton's avatar
    fb64cda5
    MIPS: Abstract cache op loops with a macro · fb64cda5
    Paul Burton authored
    
    The various cache maintenance routines perform a number of loops over
    cache lines. Rather than duplicate the code for performing such loops,
    abstract it out into a new cache_loop macro which performs an arbitrary
    number of cache ops on a range of addresses. This reduces duplication in
    the existing L1 cache maintenance code & will allow for not adding
    further duplication when introducing L2 cache support.
    
    Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
    fb64cda5
    History
    MIPS: Abstract cache op loops with a macro
    Paul Burton authored
    
    The various cache maintenance routines perform a number of loops over
    cache lines. Rather than duplicate the code for performing such loops,
    abstract it out into a new cache_loop macro which performs an arbitrary
    number of cache ops on a range of addresses. This reduces duplication in
    the existing L1 cache maintenance code & will allow for not adding
    further duplication when introducing L2 cache support.
    
    Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
cache.c 2.29 KiB