xen/arm: mm: Re-implement early_fdt_map() using map_pages_to_xen()
authorJulien Grall <julien.grall@arm.com>
Fri, 20 May 2022 12:09:26 +0000 (13:09 +0100)
committerJulien Grall <jgrall@amazon.com>
Wed, 8 Jun 2022 10:04:53 +0000 (11:04 +0100)
commitf8c818848fa64b1957411faea7cee22d677cebcc
treeecd752f43df5a010f3320613e89e026252a6bc5a
parent6eb5a9396413896a696c4d6dda2e26c4c94589bf
xen/arm: mm: Re-implement early_fdt_map() using map_pages_to_xen()

Now that map_pages_to_xen() has been extended to support 2MB mappings,
we can replace the create_mappings() calls by map_pages_to_xen() calls.

The mapping can also be marked read-only as Xen should not modify
the host Device Tree during boot.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Hongda Deng <Hongda.Heng@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/mm.c