arch: arm: aarch32: Rename cortex_r to cortex_a_r

This commit renames the `cortex_r` directory under the AArch32 to
`cortex_a_r`, in preparation for the AArch32 Cortex-A support.

The rationale for this renaming is that the Cortex-A and Cortex-R share
the same base design and the difference between them, other than the
MPU vs. MMU, is minimal.

Since most of the architecture port code and configurations will be
shared between the Cortex-A and Cortex-R architectures, it is
advantageous to have them together in the same directory.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
This commit is contained in:
Stephanos Ioannidis 2020-03-22 23:19:22 +09:00 committed by Ioannis Glaropoulos
commit a033683783
30 changed files with 41 additions and 41 deletions

View file

@ -37,8 +37,8 @@
#include <arch/arm/aarch32/cortex_m/memory_map.h>
#include <arch/common/sys_io.h>
#elif defined(CONFIG_CPU_CORTEX_R)
#include <arch/arm/aarch32/cortex_r/cpu.h>
#include <arch/arm/aarch32/cortex_r/sys_io.h>
#include <arch/arm/aarch32/cortex_a_r/cpu.h>
#include <arch/arm/aarch32/cortex_a_r/sys_io.h>
#endif
#ifdef __cplusplus

View file

@ -23,7 +23,7 @@
#include <irq.h>
#if defined(CONFIG_CPU_CORTEX_R)
#include <arch/arm/cortex_r/cpu.h>
#include <arch/arm/aarch32/cortex_a_r/cpu.h>
#endif
#ifdef __cplusplus

View file

@ -11,8 +11,8 @@
* This header contains the interface to the ARM CMSIS Core headers.
*/
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_R_CMSIS_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_R_CMSIS_H_
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_A_R_CMSIS_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_A_R_CMSIS_H_
#include <soc.h>
@ -37,7 +37,7 @@ extern "C" {
#elif defined(CONFIG_CPU_CORTEX_R5)
#include <core_cr5.h>
#else
#error "Unknown Cortex-R device"
#error "Unknown device"
#endif
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_R_CMSIS_H_ */
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_A_R_CMSIS_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _CORTEX_R_CPU_H
#define _CORTEX_R_CPU_H
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_A_R_CPU_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_A_R_CPU_H_
#define MODE_USR 0x10
#define MODE_FIQ 0x11
@ -31,4 +31,4 @@
#define FPEXC_EN (1 << 30)
#endif
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_A_R_CPU_H_ */

View file

@ -8,7 +8,7 @@
* @file
* @brief Linker command/script file
*
* Linker script for the Cortex-R platforms.
* Linker script for the Cortex-A and Cortex-R platforms.
*/
#include <autoconf.h>

View file

@ -9,14 +9,14 @@
* gcc builtins)
*/
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_R_SYS_IO_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_R_SYS_IO_H_
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_A_R_SYS_IO_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_A_R_SYS_IO_H_
#ifndef _ASMLANGUAGE
#include <zephyr/types.h>
#include <sys/sys_io.h>
#include <arch/arm/aarch32/cortex_r/cmsis.h>
#include <arch/arm/aarch32/cortex_a_r/cmsis.h>
#ifdef __cplusplus
extern "C" {
@ -160,4 +160,4 @@ static ALWAYS_INLINE
#endif /* _ASMLANGUAGE */
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_R_SYS_IO_H_ */
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_A_R_SYS_IO_H_ */

View file

@ -8,9 +8,9 @@
#define ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_R_CPU_H_
#ifndef CONFIG_COMPAT_INCLUDES
#warning "This header file has moved, include <arch/arm/aarch32/cortex_r/cpu.h> instead."
#warning "This header file has moved, include <arch/arm/aarch32/cortex_a_r/cpu.h> instead."
#endif
#include <arch/arm/aarch32/cortex_r/cpu.h>
#include <arch/arm/aarch32/cortex_a_r/cpu.h>
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_R_CPU_H_ */

View file

@ -4,4 +4,4 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <arch/arm/aarch32/cortex_r/scripts/linker.ld>
#include <arch/arm/aarch32/cortex_a_r/scripts/linker.ld>

View file

@ -8,9 +8,9 @@
#define ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_R_SYS_IO_H_
#ifndef CONFIG_COMPAT_INCLUDES
#warning "This header file has moved, include <arch/arm/aarch32/cortex_r/sys_io.h> instead."
#warning "This header file has moved, include <arch/arm/aarch32/cortex_a_r/sys_io.h> instead."
#endif
#include <arch/arm/aarch32/cortex_r/sys_io.h>
#include <arch/arm/aarch32/cortex_a_r/sys_io.h>
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_R_SYS_IO_H_ */