SPM: Move shim layer to TTBR1_EL1
[project/bcm63xx/atf.git] / lib / xlat_tables_v2 / aarch64 / xlat_tables_arch.c
index e7593dde76581799be3c0c3d6f8cf8c68a855fe5..8eeeea1dd5aefc04a91d9b37d01b62fb40b884a1 100644 (file)
@@ -248,7 +248,7 @@ void setup_mmu_cfg(uint64_t *params, unsigned int flags,
         */
        int t0sz = 64 - __builtin_ctzll(virtual_addr_space_size);
 
-       tcr = (uint64_t) t0sz;
+       tcr = (uint64_t)t0sz << TCR_T0SZ_SHIFT;
 
        /*
         * Set the cacheability and shareability attributes for memory