Calculate TCR bits based on VA and PA
Currently the TCR bits are hardcoded in xlat_tables.c. In order to
map higher physical address into low virtual address, the TCR bits
need to be configured accordingly.

This patch is to save the max VA and PA and calculate the TCR.PS/IPS
and t0sz bits in init_xlat_tables function.

Change-Id: Ia7a58e5372b20200153057d457f4be5ddbb7dae4
1 parent dac1235 commit 73ad2572c886994e9e0418b2a293570efe90b20c
@Lin Ma Lin Ma authored on 27 Jun 2014
Dan Handley committed on 9 Jul 2014
Showing 2 changed files
View
include/lib/aarch64/arch.h
View
lib/aarch64/xlat_tables.c