xen/arm: Gate GICv3 change with HAS_GICV3 rather than CONFIG_ARM_64...

for clarity and it will be easier to understand some follow-up patches.

Also gate gic_v3 structure with HAS_GICV3.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
Julien Grall authored and Ian Campbell committed 2015-07-03 10:06:40 +01:00
1 parent 7e02c88160
commit bbc317721c
6 files changed
+10 -3

No files matched your search

+1
View File
@@ -10,6 +10,7 @@ HAS_PL011 := y
HAS_CADENCE_UART := y
HAS_NS16550 := y
HAS_MEM_ACCESS := y
HAS_GICV3 := y
# Use only if calling $(LD) directly.
LDFLAGS_DIRECT += -EL
+1 -1
View File
@@ -13,7 +13,7 @@ obj-y += sysctl.o
obj-y += domain_build.o
obj-y += gic.o gic-v2.o
obj-$(CONFIG_ARM_32) += gic-hip04.o
obj-$(CONFIG_ARM_64) += gic-v3.o
obj-$(HAS_GICV3) += gic-v3.o
obj-y += io.o
obj-y += irq.o
obj-y += kernel.o
+2
View File
@@ -38,6 +38,8 @@ ifneq ($(call cc-option,$(CC),-fvisibility=hidden,n),n)
CFLAGS += -DGCC_HAS_VISIBILITY_ATTRIBUTE
endif
CFLAGS-$(HAS_GICV3) += -DHAS_GICV3
EARLY_PRINTK := n
ifeq ($(debug),y)
+1 -1
View File
@@ -82,7 +82,7 @@ int domain_vgic_init(struct domain *d, unsigned int nr_spis)
switch ( gic_hw_version() )
{
#ifdef CONFIG_ARM_64
#ifdef HAS_GICV3
case GIC_V3:
if ( vgic_v3_init(d) )
return -ENODEV;
+1 -1
View File
@@ -101,7 +101,7 @@ struct arch_domain
/* Base address for guest GIC */
paddr_t dbase; /* Distributor base address */
paddr_t cbase; /* CPU base address */
#ifdef CONFIG_ARM_64
#ifdef HAS_GICV3
/* GIC V3 addressing */
paddr_t dbase_size; /* Distributor base size */
/* List of contiguous occupied by the redistributors */
+4
View File
@@ -162,6 +162,7 @@
#define DT_MATCH_GIC_V3 DT_MATCH_COMPATIBLE("arm,gic-v3")
#ifdef HAS_GICV3
/*
* GICv3 registers that needs to be saved/restored
*/
@@ -171,6 +172,7 @@ struct gic_v3 {
uint32_t apr1[4];
uint64_t lr[16];
};
#endif
/*
* GICv2 register that needs to be saved/restored
@@ -188,7 +190,9 @@ struct gic_v2 {
*/
union gic_state_data {
struct gic_v2 v2;
#ifdef HAS_GICV3
struct gic_v3 v3;
#endif
};
/*
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.