]> rtime.felk.cvut.cz Git - jailhouse.git/commit
arm: GIC initialisation skeleton
authorJean-Philippe Brucker <jean-philippe.brucker@arm.com>
Thu, 26 Jun 2014 13:27:17 +0000 (14:27 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Fri, 19 Dec 2014 10:04:07 +0000 (11:04 +0100)
commiteb9ed1dee83ad0cfd620b11e518bf4a74071054e
tree3f4407141b0924b20417601afcb3b071c4bc9b0b
parent819e38850f19b3a885a31a16f1f8aedc643fb14c
arm: GIC initialisation skeleton

Since the GIC uses MMIOs, its initialisation must be done at EL2. This
is why arch_cpu_init first calls irqchip_init on the master CPU, to map
the devices, and then irqchip_cpu_init on all CPUs.

The aim of this patch is to allow support for both GICv2 and GICv3. It
abstracts the GIC operations by using `struct irqchip_ops', and fills it
with the right device hooks after detecting which irqchip is available.

Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/arch/arm/Makefile
hypervisor/arch/arm/include/asm/irqchip.h [new file with mode: 0644]
hypervisor/arch/arm/irqchip.c [new file with mode: 0644]
hypervisor/arch/arm/setup.c