]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commit
xen/arm32: Create the same boot-time MPU regions as arm64
authorAyan Kumar Halder <ayan.kumar.halder@amd.com>
Mon, 14 Apr 2025 16:45:13 +0000 (17:45 +0100)
committerMichal Orzel <michal.orzel@amd.com>
Wed, 16 Apr 2025 06:36:10 +0000 (08:36 +0200)
commit76e9dd7cdccbe427dc31d508001f6fe7c5f5fb8a
treee77500e8253a00493719c3bfe223a73851cd2408
parenta9445d160667347087ede822f91f2750eb579461
xen/arm32: Create the same boot-time MPU regions as arm64

Create Boot-time MPU protection regions (similar to Armv8-R AArch64) for
Armv8-R AArch32.
Also, defined *_PRBAR macros for arm32. The only difference from arm64 is that
XN is 1-bit for arm32.
Define the system registers and macros in mpu/cpregs.h.

Introduce WRITE_SYSREG_ASM() to write to system registers in assembly.

Signed-off-by: Ayan Kumar Halder <ayan.kumar.halder@amd.com>
Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>
Reviewed-by: Michal Orzel <michal.orzel@amd.com>
Tested-by: Luca Fancellu <luca.fancellu@arm.com>
xen/arch/arm/arm32/Makefile
xen/arch/arm/arm32/mpu/Makefile [new file with mode: 0644]
xen/arch/arm/arm32/mpu/head.S [new file with mode: 0644]
xen/arch/arm/include/asm/arm32/sysregs.h
xen/arch/arm/include/asm/cpregs.h
xen/arch/arm/include/asm/mpu/cpregs.h [new file with mode: 0644]