Commit d140ad48 authored by Andrew Jones's avatar Andrew Jones Committed by Marcelo Tosatti
Browse files

arm64: fixup: use id_aa64mmfr0_el1 to set tcr

We shouldn't assume we can set tcr_el1.ips to 42 bits. Set
it based on what we read from id_aa64mmfr0_el1. Didn't see
a problem, but might as well be correct.

Signed-off-by: Andrew Jones's avatarAndrew Jones <>
Signed-off-by: default avatarMarcelo Tosatti <>
parent 1392497b
......@@ -92,7 +92,7 @@ asm_mmu_enable:
TCR_TG0_64K | TCR_TG1_64K | \
mov x2, #3 // 011 is 42 bits
mrs x2, id_aa64mmfr0_el1
bfi x1, x2, #32, #3
msr tcr_el1, x1
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment