Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Paul Burton's avatar
    c5b8412d
    MIPS: Ensure Config.K0=2 applies before any memory accesses · c5b8412d
    Paul Burton authored
    
    During boot we set Config.K0=2 (uncached) such that any accesses to the
    kseg0 memory region are performed uncached before the caches are
    initialised. This write to the Config register introduces an execution
    hazard between it & any following memory accesses (such as the load of
    _gp), which we need to clear in order to ensure those memory accesses
    are actually performed uncached. Clear this execution hazard with the
    insertion of an ehb execution hazard barrier instruction.
    
    Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
    c5b8412d
    History
    MIPS: Ensure Config.K0=2 applies before any memory accesses
    Paul Burton authored
    
    During boot we set Config.K0=2 (uncached) such that any accesses to the
    kseg0 memory region are performed uncached before the caches are
    initialised. This write to the Config register introduces an execution
    hazard between it & any following memory accesses (such as the load of
    _gp), which we need to clear in order to ensure those memory accesses
    are actually performed uncached. Clear this execution hazard with the
    insertion of an ehb execution hazard barrier instruction.
    
    Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>