]> xenbits.xensource.com Git - xen.git/commit
xen/common: Move Arm's bootfdt.c to common
authorShawn Anastasio <sanastasio@raptorengineering.com>
Tue, 6 Aug 2024 11:41:14 +0000 (13:41 +0200)
committerJulien Grall <jgrall@amazon.com>
Tue, 6 Aug 2024 18:10:56 +0000 (19:10 +0100)
commitf06fbfe54dea044b9d5e93a6ef4bcb0c4747ca9d
treeeccae222a61b196e0f76eb5c04e88f69efd47770
parentd6c57aa085e7abb1eacf015511f0f40bc2f28d81
xen/common: Move Arm's bootfdt.c to common

Move Arm's bootfdt.c to xen/common so that it can be used by other
device tree architectures like PPC and RISCV.

Remove stubs for process_shm_node() and early_print_info_shmem()
from $xen/arch/arm/include/asm/static-shmem.h.
These stubs are removed to avoid introducing them for architectures
that do not support CONFIG_STATIC_SHM.
The process_shm_node() stub is now implemented in common code to
maintain the current behavior of early_scan_code() on ARM.
The early_print_info_shmem() stub is only used in early_print_info(),
so it's now guarded with #ifdef CONFIG_STATIC_SHM ... #endif.

Suggested-by: Julien Grall <julien@xen.org>
Signed-off-by: Shawn Anastasio <sanastasio@raptorengineering.com>
Signed-off-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/Makefile
xen/arch/arm/bootfdt.c [deleted file]
xen/arch/arm/include/asm/setup.h
xen/arch/arm/include/asm/static-shmem.h
xen/common/device-tree/Makefile
xen/common/device-tree/bootfdt.c [new file with mode: 0644]
xen/include/xen/bootfdt.h