From d9a6e1d0c0b735dae5efac27b4ab0aeea9bee79a Mon Sep 17 00:00:00 2001 From: Ioannis Glaropoulos Date: Thu, 12 Mar 2020 13:41:59 +0100 Subject: [PATCH] arch: arm: aarch32: rename z_arm_int_lib_init() function We rename the z_arm_int_lib_init() function to z_arm_interrupt_init(), aligning to how other ARCHes name their IRQ initialization function. There is nothing about 'library' in this functionality, so we remove the 'lib' in-fix. The commit does not introduce any behavior changes. Signed-off-by: Ioannis Glaropoulos --- arch/arm/core/aarch32/cortex_m/irq_init.c | 2 +- arch/arm/core/aarch32/prep_c.c | 2 +- include/arch/arm/aarch32/irq.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/core/aarch32/cortex_m/irq_init.c b/arch/arm/core/aarch32/cortex_m/irq_init.c index 25848937da7..31a15fcda66 100644 --- a/arch/arm/core/aarch32/cortex_m/irq_init.c +++ b/arch/arm/core/aarch32/cortex_m/irq_init.c @@ -24,7 +24,7 @@ * @return N/A */ -void z_arm_int_lib_init(void) +void z_arm_interrupt_init(void) { int irq = 0; diff --git a/arch/arm/core/aarch32/prep_c.c b/arch/arm/core/aarch32/prep_c.c index ce61c7698a1..4a20f5253e2 100644 --- a/arch/arm/core/aarch32/prep_c.c +++ b/arch/arm/core/aarch32/prep_c.c @@ -180,7 +180,7 @@ void z_arm_prep_c(void) #if defined(CONFIG_ARMV7_R) && defined(CONFIG_INIT_STACKS) z_arm_init_stacks(); #endif - z_arm_int_lib_init(); + z_arm_interrupt_init(); z_cstart(); CODE_UNREACHABLE; } diff --git a/include/arch/arm/aarch32/irq.h b/include/arch/arm/aarch32/irq.h index e59af4e3ec3..5ecd94db497 100644 --- a/include/arch/arm/aarch32/irq.h +++ b/include/arch/arm/aarch32/irq.h @@ -36,11 +36,11 @@ extern int arch_irq_is_enabled(unsigned int irq); extern void z_arm_int_exit(void); #if defined(CONFIG_ARMV7_R) -static ALWAYS_INLINE void z_arm_int_lib_init(void) +static ALWAYS_INLINE void z_arm_interrupt_init(void) { } #else -extern void z_arm_int_lib_init(void); +extern void z_arm_interrupt_init(void); #endif /* macros convert value of it's argument to a string */