]> xenbits.xensource.com Git - xen.git/commit
xen/arm: Add macros to handle the MIDR
authorJulien Grall <julien.grall@arm.com>
Wed, 22 Jun 2016 11:15:18 +0000 (12:15 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 13 Jul 2016 17:30:42 +0000 (18:30 +0100)
commit96c53eaa8cd32f86700b749065eaa37bf4cdc24c
tree1c4f7601ce7879449beb43975c69c029b1822ed4
parent70108942b626f9d57e3991793dc33d8bda091862
xen/arm: Add macros to handle the MIDR

Add new macros to easily get different parts of the register and to
check if a given MIDR match a CPU model range. The latter will be really
useful to handle errata later.

The macros have been imported from the header
arch/arm64/include/asm/cputype.h in Linux v4.6-rc3.

Also remove MIDR_MASK which is unused.

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