[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH v3 6/6] arm/mpu: Implement remove_early_mappings for MPU systems
From: Luca Fancellu <luca.fancellu@xxxxxxx> 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: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx> --- Changes from v1: - Add Ayan's R-b Changes from v2: - Remove full stop - Remove sanity check for `mapped_fdt_paddr == INVALID_PADDR` --- 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 a8cea0d9af..efceb985e3 100644 --- a/xen/arch/arm/mpu/setup.c +++ b/xen/arch/arm/mpu/setup.c @@ -106,7 +106,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"); } /* -- 2.34.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |