|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] arm/mpu: Implement remove_early_mappings for MPU systems
commit 5f720152d56140765cf9f85303fb4c81b1b44d7e
Author: Luca Fancellu <luca.fancellu@xxxxxxx>
AuthorDate: Mon Jul 21 09:31:47 2025 +0100
Commit: Michal Orzel <michal.orzel@xxxxxxx>
CommitDate: Wed Jul 23 09:51:55 2025 +0200
arm/mpu: Implement remove_early_mappings for MPU systems
Implement remove_early_mappings for MPU systems.
Signed-off-by: Luca Fancellu <luca.fancellu@xxxxxxx>
Signed-off-by: Hari Limaye <hari.limaye@xxxxxxx>
Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>
---
xen/arch/arm/mpu/setup.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/xen/arch/arm/mpu/setup.c b/xen/arch/arm/mpu/setup.c
index 2ef703757f..163573b932 100644
--- a/xen/arch/arm/mpu/setup.c
+++ b/xen/arch/arm/mpu/setup.c
@@ -96,7 +96,11 @@ void __init copy_from_paddr(void *dst, paddr_t paddr,
unsigned long len)
void __init remove_early_mappings(void)
{
- BUG_ON("unimplemented");
+ int rc = destroy_xen_mappings(round_pgdown(mapped_fdt_base),
+ mapped_fdt_limit);
+
+ if ( rc )
+ panic("Unable to unmap the device-tree\n");
}
/*
--
generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |