Skip to content
Snippets Groups Projects
Commit 2e853c19 authored by Oleksii Kurochko's avatar Oleksii Kurochko Committed by Jan Beulich
Browse files

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: default avatarOleksii Kurochko <oleksii.kurochko@gmail.com>
Reviewed-by: Michal Orzel's avatarMichal Orzel <michal.orzel@amd.com>
parent 722d93bc
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment