Skip to content

Commit

Permalink
arm: Move gicd_base declarations into header
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
  • Loading branch information
jan-kiszka committed Sep 25, 2016
1 parent e7a677c commit 7e08f40
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions hypervisor/arch/arm/gic-common.c
Expand Up @@ -24,8 +24,6 @@
#define REG_RANGE(base, n, size) \
(base) ... ((base) + (n - 1) * (size))

extern void *gicd_base;

static DEFINE_SPINLOCK(dist_lock);

/* The GIC interface numbering does not necessarily match the logical map */
Expand Down
1 change: 0 additions & 1 deletion hypervisor/arch/arm/gic-v2.c
Expand Up @@ -18,7 +18,6 @@

static unsigned int gic_num_lr;

extern void *gicd_base;
void *gicc_base;
void *gich_base;

Expand Down
1 change: 0 additions & 1 deletion hypervisor/arch/arm/gic-v3.c
Expand Up @@ -32,7 +32,6 @@ static unsigned int gic_num_lr;
static unsigned int gic_num_priority_bits;
static u32 gic_version;

extern void *gicd_base;
static void *gicr_base;

static int gic_init(void)
Expand Down
2 changes: 2 additions & 0 deletions hypervisor/arch/arm/include/asm/gic.h
Expand Up @@ -56,6 +56,8 @@ struct sgi;

extern u8 target_cpu_map[];

extern void *gicd_base;

int gic_probe_cpu_id(unsigned int cpu);
enum mmio_result gic_handle_dist_access(void *arg, struct mmio_access *mmio);
enum mmio_result gic_handle_irq_route(struct mmio_access *mmio,
Expand Down

0 comments on commit 7e08f40

Please sign in to comment.