From 6098747c4ff7fa189b8891edb5797dfa37c5d963 Mon Sep 17 00:00:00 2001 From: chao an Date: Mon, 2 Sep 2024 13:11:03 +0800 Subject: [PATCH] arm/giv3: add g_ prefix to some global variables Signed-off-by: chao an --- arch/arm/src/armv8-r/arm_gicv3.c | 10 +++++----- arch/arm64/src/common/arm64_gicv3.c | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/arm/src/armv8-r/arm_gicv3.c b/arch/arm/src/armv8-r/arm_gicv3.c index 4846b51a22..96cef977ca 100644 --- a/arch/arm/src/armv8-r/arm_gicv3.c +++ b/arch/arm/src/armv8-r/arm_gicv3.c @@ -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 @@ -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) @@ -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) diff --git a/arch/arm64/src/common/arm64_gicv3.c b/arch/arm64/src/common/arm64_gicv3.c index b1557bcfce..62497d5f2a 100644 --- a/arch/arm64/src/common/arm64_gicv3.c +++ b/arch/arm64/src/common/arm64_gicv3.c @@ -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 @@ -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) @@ -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)