arm64: fix incorrect memory region size in TCR_EL2
authorShanker Donthineni <shankerd@codeaurora.org>
Thu, 17 Mar 2016 12:46:58 +0000 (13:46 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 17 Mar 2016 12:46:58 +0000 (13:46 +0100)
commiteb6fe7a46997df408cda3e74038f7367fc1768af
tree87da7186f0489f6ef884b003dd6225f21ca85d91
parent6ea2dc59a78ebf24ecdf20193144dada90b0512b
arm64: fix incorrect memory region size in TCR_EL2

The maximum and minimum values for TxSZ depend on level of
translation as per AArch64 Virtual Memory System Architecture.
According to ARM specification DDI0487A_h (sec D4.2.2, page 1752),
the minimum TxSZ value is 16. If TxSZ is programmed to a value
smaller than 16 then it is IMPLEMENTATION DEFINED.

This patch sets T0SZ to (64-48)bits since XEN uses all 4 levels
to cover 48bit (256TB) virtual address instead of value zero.

Signed-off-by: Shanker Donthineni <shankerd@codeaurora.org>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/arm64/head.S