arm/mpu: Implement ioremap_attr for MPU

Implement the function `ioremap_attr` for MPU systems.

Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
Acked-by: Michal Orzel <michal.orzel@amd.com>
Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>
Tested-by: Luca Fancellu <luca.fancellu@arm.com>
This commit is contained in:
Harry Ramsey authored and Michal Orzel committed 2025-11-24 13:53:47 +01:00
1 parent 1128e6fe36
commit efeec4c707
1 file changed
+8 -2
+8 -2
View File
@@ -473,8 +473,14 @@ void free_init_memory(void)
void __iomem *ioremap_attr(paddr_t start, size_t len, unsigned int flags) void __iomem *ioremap_attr(paddr_t start, size_t len, unsigned int flags)
{ {
BUG_ON("unimplemented"); paddr_t start_pg = round_pgdown(start);
return NULL; paddr_t end_pg = round_pgup(start_pg + len);
if ( xen_mpumap_update(start_pg, end_pg, flags) )
return NULL;
/* Mapped or already mapped */
return maddr_to_virt(start_pg);
} }
/* /*
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.