]>
arm/mpu: Introduce MPU memory region map structure
authorAyan Kumar Halder <ayan.kumar.halder@amd.com>
Wed, 11 Jun 2025 14:35:39 +0000 (15:35 +0100)
committerMichal Orzel <michal.orzel@amd.com>
Tue, 17 Jun 2025 06:31:52 +0000 (08:31 +0200)
commitb84be0ff09a94f02a7f15c24d33fe884a492d975
tree0cc3c5e10c6e197be77d1f7bb3f7a6393844c76b
parent0aae2e3a91674da585b06555efa6eeff5937d0da
arm/mpu: Introduce MPU memory region map structure

Introduce pr_t typedef which is a structure having the prbar and prlar members,
each being structured as the registers of the AArch32 Armv8-R architecture.

Also, define MPU_REGION_RES0 to 0 as there are no reserved 0 bits beyond the
BASE or LIMIT bitfields in prbar or prlar respectively.

In pr_of_addr(), enclose prbar and prlar arm64 specific bitfields with
appropriate macros. So, that this function can be later reused for arm32 as
well.

Signed-off-by: Ayan Kumar Halder <ayan.kumar.halder@amd.com>
Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/include/asm/arm32/mpu.h
xen/arch/arm/mpu/mm.c