]> xenbits.xensource.com Git - people/hx242/xen.git/commit
xen/arm: setup: Relocate the Device-Tree later on in the boot
authorJulien Grall <julien.grall@arm.com>
Wed, 11 Sep 2019 15:31:34 +0000 (16:31 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 12 Sep 2019 17:04:42 +0000 (10:04 -0700)
commit6e3e771203781ba6483636a732b2644fd6cab081
tree0568180fd8ead1ed040660387d3cbea68ae446c0
parent0a19673affbc9177ea5f758ba245c70dd1a45a90
xen/arm: setup: Relocate the Device-Tree later on in the boot

At the moment, the Device-Tree is relocated into xenheap while setting
up the memory subsystem. This is actually not necessary because the
early mapping is still present and we don't require the virtual address
to be stable until unflatting the Device-Tree.

So the relocation can safely be moved after the memory subsystem is
fully setup. This has the nice advantage to make the relocation common
and let the xenheap allocator decides where to put it.

Lastly, the device-tree is not going to be used for ACPI system. So
there are no need to relocate it and can just be discarded.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/setup.c