Skip to content

Commit

Permalink
arm/giv3: add g_ prefix to some global variables
Browse files Browse the repository at this point in the history
Signed-off-by: chao an <[email protected]>
  • Loading branch information
anchao committed Sep 2, 2024
1 parent 63ed723 commit 2a43736
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions arch/arm/src/armv8-r/arm_gicv3.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@

/* Redistributor base addresses for each core */

static unsigned long gic_rdists[CONFIG_SMP_NCPUS];
static unsigned long g_gic_rdists[CONFIG_SMP_NCPUS];

/***************************************************************************
* Private Functions
Expand Down Expand Up @@ -101,7 +101,7 @@ static inline int sys_test_bit(unsigned long addr, unsigned int bit)

static inline unsigned long gic_get_rdist(void)
{
return gic_rdists[this_cpu()];
return g_gic_rdists[this_cpu()];
}

static inline uint32_t read_gicd_wait_rwp(void)
Expand Down Expand Up @@ -801,9 +801,9 @@ static void arm_gic_init(void)
uint8_t cpu;
int err;

cpu = this_cpu();
gic_rdists[cpu] = CONFIG_GICR_BASE +
up_cpu_index() * CONFIG_GICR_OFFSET;
cpu = this_cpu();
g_gic_rdists[cpu] = CONFIG_GICR_BASE +
up_cpu_index() * CONFIG_GICR_OFFSET;

err = gic_validate_redist_version();
if (err)
Expand Down
10 changes: 5 additions & 5 deletions arch/arm64/src/common/arm64_gicv3.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@

/* Redistributor base addresses for each core */

static unsigned long gic_rdists[CONFIG_SMP_NCPUS];
static unsigned long g_gic_rdists[CONFIG_SMP_NCPUS];

/***************************************************************************
* Private Functions
Expand Down Expand Up @@ -112,7 +112,7 @@ static inline int sys_test_bit(unsigned long addr, unsigned int bit)

static inline unsigned long gic_get_rdist(void)
{
return gic_rdists[this_cpu()];
return g_gic_rdists[this_cpu()];
}

static inline uint32_t read_gicd_wait_rwp(void)
Expand Down Expand Up @@ -940,9 +940,9 @@ static void arm64_gic_init(void)
uint8_t cpu;
int err;

cpu = this_cpu();
gic_rdists[cpu] = CONFIG_GICR_BASE +
up_cpu_index() * CONFIG_GICR_OFFSET;
cpu = this_cpu();
g_gic_rdists[cpu] = CONFIG_GICR_BASE +
up_cpu_index() * CONFIG_GICR_OFFSET;

err = gic_validate_redist_version();
if (err)
Expand Down

0 comments on commit 2a43736

Please sign in to comment.