On 12.04.2024 05:55, Shawn Anastasio wrote: > Arm's setup.c contains a collection of functions for parsing memory map > and other boot information from a device tree. Since these routines are > generally useful on any architecture that supports device tree booting, > move them into xen/common/device-tree. > > Suggested-by: Julien Grall <jul...@xen.org> > Signed-off-by: Shawn Anastasio <sanasta...@raptorengineering.com> > --- > Changes in v4: > - create new xen/include/bootinfo.h rather than relying on arch's > asm/setup.h to provide required definitions for bootinfo.c > - build bootinfo.c as .init.o > - clean up and sort bootinfo.c's #includes > - use CONFIG_SEPARATE_XENHEAP rather than CONFIG_ARM_32 to guard > xenheap-specific behavior of populate_boot_allocator > - (MAINTAINERS) include all of common/device-tree rather than just > bootinfo.c > > MAINTAINERS | 1 + > xen/arch/arm/include/asm/setup.h | 109 +------- > xen/arch/arm/setup.c | 419 ---------------------------- > xen/common/Makefile | 1 + > xen/common/device-tree/Makefile | 1 + > xen/common/device-tree/bootinfo.c | 446 ++++++++++++++++++++++++++++++ > xen/include/xen/bootfdt.h | 116 ++++++++ > 7 files changed, 566 insertions(+), 527 deletions(-) > create mode 100644 xen/common/device-tree/Makefile > create mode 100644 xen/common/device-tree/bootinfo.c > create mode 100644 xen/include/xen/bootfdt.h
Should this further new file ... > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -295,6 +295,7 @@ M: Stefano Stabellini <sstjabell...@kernel.org> > M: Julien Grall <jul...@xen.org> > S: Supported > F: xen/common/libfdt/ > +F: xen/common/device-tree/ > F: xen/common/device_tree.c > F: xen/common/dt-overlay.c > F: xen/include/xen/libfdt/ ... perhaps also be added here? Jan