]> rtime.felk.cvut.cz Git - jailhouse.git/commit
arm: GICv3 initialisation
authorJean-Philippe Brucker <jean-philippe.brucker@arm.com>
Fri, 11 Jul 2014 15:33:28 +0000 (16:33 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Fri, 19 Dec 2014 10:04:07 +0000 (11:04 +0100)
commit2ce9d14ca4e26c7d8da634a8cb00602c628b766d
tree0c3e233bea7930631dac0500ebab8e1cf7b8939a
parenteb9ed1dee83ad0cfd620b11e518bf4a74071054e
arm: GICv3 initialisation

Assuming there is a GIC distributor at address GICD_BASE, this patch
checks its version and call the gic init function. Linux's kconfig header
is used to guess the base address of the distributor.
Ideally, a device tree would be passed to the hypervisor in the root
cell's config, allowing to remove all constant base addresses.

The patch also assumes that most of the GIC has been setup by Linux prior
to the hypervisor installation, and only initialises the vGIC.

Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
[Jan: use mmio accessors]
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/arch/arm/Makefile
hypervisor/arch/arm/gic-v3.c [new file with mode: 0644]
hypervisor/arch/arm/include/asm/gic_common.h [new file with mode: 0644]
hypervisor/arch/arm/include/asm/gic_v3.h [new file with mode: 0644]
hypervisor/arch/arm/include/asm/percpu.h
hypervisor/arch/arm/include/asm/platform.h
hypervisor/arch/arm/irqchip.c