|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v3 1/6] arm/mpu: Introduce MPU memory region map structure
Hi Ayan, On 11/06/2025 15:35, Ayan Kumar Halder wrote: 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@xxxxxxx> Acked-by: Julien Grall <jgrall@xxxxxxxxxx> Cheers, --- Changes from v1 :- 1. Preserve pr_t typedef in arch specific files. 2. Fix typo. v2 :- 1. Change CONFIG_ARM64 to CONFIG_ARM_64 to enclose arm64 specific bitfields for prbar and prlar registers in pr_of_addr(). xen/arch/arm/include/asm/arm32/mpu.h | 34 ++++++++++++++++++++++++++-- xen/arch/arm/mpu/mm.c | 4 ++++ 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/include/asm/arm32/mpu.h b/xen/arch/arm/include/asm/arm32/mpu.h index f0d4d4055c..0a6930b3a0 100644 --- a/xen/arch/arm/include/asm/arm32/mpu.h +++ b/xen/arch/arm/include/asm/arm32/mpu.h @@ -5,10 +5,40 @@#ifndef __ASSEMBLY__ +/* -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |