]> xenbits.xensource.com Git - xen.git/commitdiff
arm/mpu: Implement stubs for ioremap_attr on MPU
authorLuca Fancellu <luca.fancellu@arm.com>
Tue, 1 Apr 2025 08:58:56 +0000 (09:58 +0100)
committerMichal Orzel <michal.orzel@amd.com>
Wed, 2 Apr 2025 09:15:10 +0000 (11:15 +0200)
Implement ioremap_attr() stub for MPU system; the
implementation of ioremap() is the same between MMU
and MPU system, and it relies on ioremap_attr(), so
move the definition from mmu/pt.c to arm/mm.c.

Signed-off-by: Luca Fancellu <luca.fancellu@arm.com>
Reviewed-by: Michal Orzel <michal.orzel@amd.com>
xen/arch/arm/mm.c
xen/arch/arm/mmu/pt.c
xen/arch/arm/mpu/mm.c

index a56e20ba2bdc22519ed37ef94db4780e1654be44..5a52f0c623e5684045e1c1710d419c69fa6b55a9 100644 (file)
@@ -395,6 +395,11 @@ unsigned long get_upper_mfn_bound(void)
     return max_page - 1;
 }
 
+void *ioremap(paddr_t pa, size_t len)
+{
+    return ioremap_attr(pa, len, PAGE_HYPERVISOR_NOCACHE);
+}
+
 /*
  * Local variables:
  * mode: C
index da28d669e7968a411748146819807349eaab618a..11cb1c66dac826f4df65e3eaff9ac82ffdda1e22 100644 (file)
@@ -223,11 +223,6 @@ void *ioremap_attr(paddr_t start, size_t len, unsigned int attributes)
     return ptr + offs;
 }
 
-void *ioremap(paddr_t pa, size_t len)
-{
-    return ioremap_attr(pa, len, PAGE_HYPERVISOR_NOCACHE);
-}
-
 static int create_xen_table(lpae_t *entry)
 {
     mfn_t mfn;
index 3632011c1013b14c23bb379c9f85cf65a49646e6..4e9a2405d8c5fee8440d972154dd7fabd4d90677 100644 (file)
@@ -17,6 +17,12 @@ static void __init __maybe_unused build_assertions(void)
     BUILD_BUG_ON(PAGE_SIZE != SZ_4K);
 }
 
+void __iomem *ioremap_attr(paddr_t start, size_t len, unsigned int flags)
+{
+    BUG_ON("unimplemented");
+    return NULL;
+}
+
 /*
  * Local variables:
  * mode: C