mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
armv8: cache_v8: fix mmu_set_region_dcache_behaviour
The enum dcache_optoion contains a shift left 2 bits in the armv8 case already. The PMD_ATTRINDX(option) macro will perform a left shift of 2 bits. Perform a right shift so that in the end we get the correct value. [trini: Reword the commit message] Reviewed-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
9c5fef5774
commit
b4b2619211
1 changed files with 1 additions and 1 deletions
|
@ -557,7 +557,7 @@ static u64 set_one_region(u64 start, u64 size, u64 attrs, bool flag, int level)
|
|||
void mmu_set_region_dcache_behaviour(phys_addr_t start, size_t size,
|
||||
enum dcache_option option)
|
||||
{
|
||||
u64 attrs = PMD_ATTRINDX(option);
|
||||
u64 attrs = PMD_ATTRINDX(option >> 2);
|
||||
u64 real_start = start;
|
||||
u64 real_size = size;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue