• Dan Handley's avatar
    Remove use of PLATFORM_CACHE_LINE_SIZE · ce4c820d
    Dan Handley authored
    The required platform constant PLATFORM_CACHE_LINE_SIZE is
    unnecessary since CACHE_WRITEBACK_GRANULE effectively provides the
    same information. CACHE_WRITEBACK_GRANULE is preferred since this
    is an architecturally defined term and allows comparison with the
    corresponding hardware register value.
    
    Replace all usage of PLATFORM_CACHE_LINE_SIZE with
    CACHE_WRITEBACK_GRANULE.
    
    Also, add a runtime assert in BL1 to check that the provided
    CACHE_WRITEBACK_GRANULE matches the value provided in CTR_EL0.
    
    Change-Id: If87286be78068424217b9f3689be358356500dcd
    ce4c820d
bl1_main.c 8.56 KB