xen/arm: page: Clean-up the definition of MAIRVAL
authorJulien Grall <julien.grall@arm.com>
Mon, 9 Oct 2017 13:23:33 +0000 (14:23 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 10 Oct 2017 21:22:06 +0000 (14:22 -0700)
commita0543df403d457e139069d3356d42a89b25d11df
treef59a461996fffbb0c99c52c97c4fcb3a8e90fd7a
parent70a3bd02f963d60cab30a2d6e6589ac477132d7c
xen/arm: page: Clean-up the definition of MAIRVAL

Currently MAIRVAL is defined in term of MAIR0VAL and MAIR1VAL which are
both hardcoded value. This makes quite difficult to understand the value
written in both registers.

Rework the definition by using value of each attribute shifted by their
associated index.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/include/asm-arm/page.h