arch: arm: remove aarch32 from include header guards

We follow the path of the header to define the guard, aarch32 was
removed some time ago and the guards still had AARCH32 in them, just
remove it and keep the guard consistent and short.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2023-12-11 19:29:04 -05:00 committed by Fabio Baltieri
parent 82613c2e30
commit e29452da64
21 changed files with 61 additions and 61 deletions

View file

@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_M_MPU_ARM_CORE_MPU_DEV_H_ #ifndef ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_MPU_ARM_CORE_MPU_DEV_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_M_MPU_ARM_CORE_MPU_DEV_H_ #define ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_MPU_ARM_CORE_MPU_DEV_H_
#include <zephyr/types.h> #include <zephyr/types.h>
#include <kernel_arch_data.h> #include <kernel_arch_data.h>
@ -269,4 +269,4 @@ int arm_core_mpu_buffer_validate(void *addr, size_t size, int write);
} }
#endif #endif
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_M_MPU_ARM_CORE_MPU_DEV_H_ */ #endif /* ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_MPU_ARM_CORE_MPU_DEV_H_ */

View file

@ -13,8 +13,8 @@
* (include/arm/cpu.h) * (include/arm/cpu.h)
*/ */
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_ARCH_H_ #ifndef ZEPHYR_INCLUDE_ARCH_ARM_ARCH_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_ARCH_H_ #define ZEPHYR_INCLUDE_ARCH_ARM_ARCH_H_
/* Add include for DTS generated information */ /* Add include for DTS generated information */
#include <zephyr/devicetree.h> #include <zephyr/devicetree.h>
@ -279,4 +279,4 @@ enum k_fatal_error_reason_arch {
} }
#endif #endif
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_ARCH_H_ */ #endif /* ZEPHYR_INCLUDE_ARCH_ARM_ARCH_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_ARCH_INLINES_H #ifndef ZEPHYR_INCLUDE_ARCH_ARM_ARCH_INLINES_H
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_ARCH_INLINES_H #define ZEPHYR_INCLUDE_ARCH_ARM_ARCH_INLINES_H
#include <zephyr/kernel_structs.h> #include <zephyr/kernel_structs.h>
#if defined(CONFIG_CPU_AARCH32_CORTEX_R) || defined(CONFIG_CPU_AARCH32_CORTEX_A) #if defined(CONFIG_CPU_AARCH32_CORTEX_R) || defined(CONFIG_CPU_AARCH32_CORTEX_A)
@ -41,4 +41,4 @@ static ALWAYS_INLINE unsigned int arch_num_cpus(void)
return CONFIG_MP_MAX_NUM_CPUS; return CONFIG_MP_MAX_NUM_CPUS;
} }
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_ARCH_INLINES_H */ #endif /* ZEPHYR_INCLUDE_ARCH_ARM_ARCH_INLINES_H */

View file

@ -6,8 +6,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_ASM_INLINE_H_ #ifndef ZEPHYR_INCLUDE_ARCH_ARM_ASM_INLINE_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_ASM_INLINE_H_ #define ZEPHYR_INCLUDE_ARCH_ARM_ASM_INLINE_H_
/* /*
* The file must not be included directly * The file must not be included directly
@ -20,4 +20,4 @@
#include <arch/arm/asm_inline_other.h> #include <arch/arm/asm_inline_other.h>
#endif #endif
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_ASM_INLINE_H_ */ #endif /* ZEPHYR_INCLUDE_ARCH_ARM_ASM_INLINE_H_ */

View file

@ -8,8 +8,8 @@
/* Either public functions or macros or invoked by public functions */ /* Either public functions or macros or invoked by public functions */
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_ASM_INLINE_GCC_H_ #ifndef ZEPHYR_INCLUDE_ARCH_ARM_ASM_INLINE_GCC_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_ASM_INLINE_GCC_H_ #define ZEPHYR_INCLUDE_ARCH_ARM_ASM_INLINE_GCC_H_
/* /*
* The file must not be included directly * The file must not be included directly
@ -126,4 +126,4 @@ static ALWAYS_INLINE bool arch_irq_unlocked(unsigned int key)
#endif /* _ASMLANGUAGE */ #endif /* _ASMLANGUAGE */
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_ASM_INLINE_GCC_H_ */ #endif /* ZEPHYR_INCLUDE_ARCH_ARM_ASM_INLINE_GCC_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_A_R_CPU_H_ #ifndef ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_A_R_CPU_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_A_R_CPU_H_ #define ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_A_R_CPU_H_
#if defined(CONFIG_ARM_MPU) #if defined(CONFIG_ARM_MPU)
#include <zephyr/arch/arm/cortex_a_r/mpu.h> #include <zephyr/arch/arm/cortex_a_r/mpu.h>
@ -116,4 +116,4 @@
(((_aff1) & SGIR_AFF_MASK) << SGIR_AFF1_SHIFT) | \ (((_aff1) & SGIR_AFF_MASK) << SGIR_AFF1_SHIFT) | \
((_tgt) & SGIR_TGT_MASK)) ((_tgt) & SGIR_TGT_MASK))
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_A_R_CPU_H_ */ #endif /* ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_A_R_CPU_H_ */

View file

@ -7,8 +7,8 @@
* *
*/ */
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_A_R_LIB_HELPERS_H_ #ifndef ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_A_R_LIB_HELPERS_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_A_R_LIB_HELPERS_H_ #define ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_A_R_LIB_HELPERS_H_
#ifndef _ASMLANGUAGE #ifndef _ASMLANGUAGE
@ -103,4 +103,4 @@ MAKE_REG_HELPER(ICC_IGRPEN1_EL1, 0, 12, 12, 7);
#define wfe() __asm__ volatile("wfe" : : : "memory") #define wfe() __asm__ volatile("wfe" : : : "memory")
#endif /* !_ASMLANGUAGE */ #endif /* !_ASMLANGUAGE */
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_A_R_LIB_HELPERS_H_ */ #endif /* ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_A_R_LIB_HELPERS_H_ */

View file

@ -9,8 +9,8 @@
* gcc builtins) * gcc builtins)
*/ */
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_A_R_SYS_IO_H_ #ifndef ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_A_R_SYS_IO_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_A_R_SYS_IO_H_ #define ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_A_R_SYS_IO_H_
#ifndef _ASMLANGUAGE #ifndef _ASMLANGUAGE
@ -88,4 +88,4 @@ static ALWAYS_INLINE uint64_t sys_read64(mem_addr_t addr)
#endif /* _ASMLANGUAGE */ #endif /* _ASMLANGUAGE */
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_A_R_SYS_IO_H_ */ #endif /* ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_A_R_SYS_IO_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_A_R_TIMER_H_ #ifndef ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_A_R_TIMER_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_A_R_TIMER_H_ #define ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_A_R_TIMER_H_
#ifdef CONFIG_ARM_ARCH_TIMER #ifdef CONFIG_ARM_ARCH_TIMER
@ -149,4 +149,4 @@ static ALWAYS_INLINE uint64_t arm_arch_timer_count(void)
#endif /* CONFIG_ARM_ARCH_TIMER */ #endif /* CONFIG_ARM_ARCH_TIMER */
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_A_R_TIMER_H_ */ #endif /* ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_A_R_TIMER_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_M_FPU_H_ #ifndef ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_FPU_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_M_FPU_H_ #define ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_FPU_H_
struct fpu_ctx_full { struct fpu_ctx_full {
uint32_t caller_saved[16]; uint32_t caller_saved[16];
@ -17,4 +17,4 @@ struct fpu_ctx_full {
void z_arm_save_fp_context(struct fpu_ctx_full *buffer); void z_arm_save_fp_context(struct fpu_ctx_full *buffer);
void z_arm_restore_fp_context(const struct fpu_ctx_full *buffer); void z_arm_restore_fp_context(const struct fpu_ctx_full *buffer);
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_M_FPU_H_ */ #endif /* ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_FPU_H_ */

View file

@ -12,8 +12,8 @@
* processors. * processors.
*/ */
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_M_MEMORY_MAP_H_ #ifndef ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_MEMORY_MAP_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_M_MEMORY_MAP_H_ #define ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_MEMORY_MAP_H_
#include <zephyr/sys/util.h> #include <zephyr/sys/util.h>
@ -110,4 +110,4 @@
#define _VENDOR_BASE_ADDR 0xE0100000 #define _VENDOR_BASE_ADDR 0xE0100000
#define _VENDOR_END_ADDR 0xFFFFFFFF #define _VENDOR_END_ADDR 0xFFFFFFFF
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_M_MEMORY_MAP_H_ */ #endif /* ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_MEMORY_MAP_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_M_NVIC_H_ #ifndef ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_NVIC_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_M_NVIC_H_ #define ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_NVIC_H_
#include <zephyr/devicetree.h> #include <zephyr/devicetree.h>
@ -25,4 +25,4 @@
#define NUM_IRQ_PRIO_BITS DT_PROP(NVIC_NODEID, arm_num_irq_priority_bits) #define NUM_IRQ_PRIO_BITS DT_PROP(NVIC_NODEID, arm_num_irq_priority_bits)
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_M_NVIC_H_ */ #endif /* ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_NVIC_H_ */

View file

@ -12,8 +12,8 @@
* arm/arch.h. * arm/arch.h.
*/ */
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_ERROR_H_ #ifndef ZEPHYR_INCLUDE_ARCH_ARM_ERROR_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_ERROR_H_ #define ZEPHYR_INCLUDE_ARCH_ARM_ERROR_H_
#include <zephyr/arch/arm/syscall.h> #include <zephyr/arch/arm/syscall.h>
#include <zephyr/arch/arm/exception.h> #include <zephyr/arch/arm/exception.h>
@ -83,4 +83,4 @@ do { \
} }
#endif #endif
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_ERROR_H_ */ #endif /* ZEPHYR_INCLUDE_ARCH_ARM_ERROR_H_ */

View file

@ -13,8 +13,8 @@
* arm/arch.h. * arm/arch.h.
*/ */
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_IRQ_H_ #ifndef ZEPHYR_INCLUDE_ARCH_ARM_IRQ_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_IRQ_H_ #define ZEPHYR_INCLUDE_ARCH_ARM_IRQ_H_
#include <zephyr/sw_isr_table.h> #include <zephyr/sw_isr_table.h>
#include <stdbool.h> #include <stdbool.h>
@ -254,4 +254,4 @@ typedef enum {
} }
#endif #endif
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_IRQ_H_ */ #endif /* ZEPHYR_INCLUDE_ARCH_ARM_IRQ_H_ */

View file

@ -11,8 +11,8 @@
* ARM AArch32-specific kernel miscellaneous interface. Included by arm/arch.h. * ARM AArch32-specific kernel miscellaneous interface. Included by arm/arch.h.
*/ */
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_MISC_H_ #ifndef ZEPHYR_INCLUDE_ARCH_ARM_MISC_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_MISC_H_ #define ZEPHYR_INCLUDE_ARCH_ARM_MISC_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -66,4 +66,4 @@ void z_arm_on_enter_cpu_idle_prepare(void);
} }
#endif #endif
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_MISC_H_ */ #endif /* ZEPHYR_INCLUDE_ARCH_ARM_MISC_H_ */

View file

@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_MPU_ARM_MPU_H_ #ifndef ZEPHYR_INCLUDE_ARCH_ARM_MPU_ARM_MPU_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_MPU_ARM_MPU_H_ #define ZEPHYR_INCLUDE_ARCH_ARM_MPU_ARM_MPU_H_
#if defined(CONFIG_CPU_CORTEX_M0PLUS) || \ #if defined(CONFIG_CPU_CORTEX_M0PLUS) || \
defined(CONFIG_CPU_CORTEX_M3) || \ defined(CONFIG_CPU_CORTEX_M3) || \
@ -74,4 +74,4 @@ extern const struct arm_mpu_config mpu_config;
#endif /* _ASMLANGUAGE */ #endif /* _ASMLANGUAGE */
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_MPU_ARM_MPU_H_ */ #endif /* ZEPHYR_INCLUDE_ARCH_ARM_MPU_ARM_MPU_H_ */

View file

@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_MPU_NXP_MPU_H_ #ifndef ZEPHYR_INCLUDE_ARCH_ARM_MPU_NXP_MPU_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_MPU_NXP_MPU_H_ #define ZEPHYR_INCLUDE_ARCH_ARM_MPU_NXP_MPU_H_
#ifndef _ASMLANGUAGE #ifndef _ASMLANGUAGE
@ -266,4 +266,4 @@ extern const struct nxp_mpu_config mpu_config;
"start address of the partition must align with minimum MPU \ "start address of the partition must align with minimum MPU \
region size.") region size.")
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_MPU_NXP_MPU_H_ */ #endif /* ZEPHYR_INCLUDE_ARCH_ARM_MPU_NXP_MPU_H_ */

View file

@ -10,11 +10,11 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_NMI_H_ #ifndef ZEPHYR_INCLUDE_ARCH_ARM_NMI_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_NMI_H_ #define ZEPHYR_INCLUDE_ARCH_ARM_NMI_H_
#if !defined(_ASMLANGUAGE) && defined(CONFIG_RUNTIME_NMI) #if !defined(_ASMLANGUAGE) && defined(CONFIG_RUNTIME_NMI)
extern void z_arm_nmi_set_handler(void (*pHandler)(void)); extern void z_arm_nmi_set_handler(void (*pHandler)(void));
#endif #endif
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_NMI_H_ */ #endif /* ZEPHYR_INCLUDE_ARCH_ARM_NMI_H_ */

View file

@ -13,8 +13,8 @@
* (include/arch/syscall.h) * (include/arch/syscall.h)
*/ */
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_SYSCALL_H_ #ifndef ZEPHYR_INCLUDE_ARCH_ARM_SYSCALL_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_SYSCALL_H_ #define ZEPHYR_INCLUDE_ARCH_ARM_SYSCALL_H_
#define _SVC_CALL_CONTEXT_SWITCH 0 #define _SVC_CALL_CONTEXT_SWITCH 0
#define _SVC_CALL_IRQ_OFFLOAD 1 #define _SVC_CALL_IRQ_OFFLOAD 1
@ -184,4 +184,4 @@ static inline bool arch_is_user_context(void)
#endif /* _ASMLANGUAGE */ #endif /* _ASMLANGUAGE */
#endif /* CONFIG_USERSPACE */ #endif /* CONFIG_USERSPACE */
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_SYSCALL_H_ */ #endif /* ZEPHYR_INCLUDE_ARCH_ARM_SYSCALL_H_ */

View file

@ -16,8 +16,8 @@
* necessary to instantiate instances of struct k_thread. * necessary to instantiate instances of struct k_thread.
*/ */
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_THREAD_H_ #ifndef ZEPHYR_INCLUDE_ARCH_ARM_THREAD_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_THREAD_H_ #define ZEPHYR_INCLUDE_ARCH_ARM_THREAD_H_
#ifndef _ASMLANGUAGE #ifndef _ASMLANGUAGE
#include <zephyr/types.h> #include <zephyr/types.h>
@ -143,4 +143,4 @@ typedef struct _thread_arch _thread_arch_t;
#endif /* _ASMLANGUAGE */ #endif /* _ASMLANGUAGE */
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_THREAD_H_ */ #endif /* ZEPHYR_INCLUDE_ARCH_ARM_THREAD_H_ */

View file

@ -12,4 +12,4 @@
#include "cmsis_core_a_r.h" #include "cmsis_core_a_r.h"
#endif #endif
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_M_CMSIS_H_ */ #endif /* ZEPHYR_MODULES_CMSIS_CMSIS_H_ */