• Russell King's avatar
    [ARM] fix VIPT/VIVT macro optimisations, add comments · daf93dd5
    Russell King authored
    cacheflush.h was doing:
    
    ... VIVT only stuff
    ... VIPT only stuff
    ... VIVT or VIPT stuff
    
    which is clearly bogus - we would only ever use the "VIVT or VIPT" case
    when both VIVT and VIPT are not selected.  Fix this.
    
    Add comments to each case, including noting the impossibility of
    correctly detecting the cache type of ARM926 and ARMv6 cores from
    the cache type register in the "VIVT or VIPT" case.
    Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
    daf93dd5
cacheflush.h 15.4 KB