mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
1128e6fe36
commit
efeec4c707
1 file changed
+8
-2
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||