-
- Downloads
xen/common: Move gic_dt_preinit() to common code
Introduce intc_dt_preinit() in the common codebase, as it is not architecture-specific and can be reused by both PPC and RISC-V. This function identifies the node with the interrupt-controller property in the device tree and calls device_init() to handle architecture-specific initialization of the interrupt controller. Make minor adjustments compared to the original ARM implementation of gic_dt_preinit(): - Remove the local rc variable in gic_dt_preinit() since it is only used once. - Change the prefix from gic to intc to clarify that the function is not specific to ARM’s GIC, making it suitable for other architectures as well. Signed-off-by:Oleksii Kurochko <oleksii.kurochko@gmail.com> Reviewed-by:
Michal Orzel <michal.orzel@amd.com>
Showing
- xen/arch/arm/gic.c 1 addition, 31 deletionsxen/arch/arm/gic.c
- xen/common/device-tree/Makefile 1 addition, 0 deletionsxen/common/device-tree/Makefile
- xen/common/device-tree/intc.c 43 additions, 0 deletionsxen/common/device-tree/intc.c
- xen/include/xen/device_tree.h 2 additions, 0 deletionsxen/include/xen/device_tree.h
Loading
Please register or sign in to comment