arch/armv[6|7|8]-m: Move _vectors to arm_internal.h to avoid the duplication

and change the type of _vectors from uint32_t to const void *

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-09-20 06:41:52 +08:00
committed by Petro Karashchenko
parent 47bd07034c
commit 229b57d6cb
48 changed files with 35 additions and 382 deletions
@@ -23,6 +23,7 @@
****************************************************************************/
#include "imxrt_flexspi_nor_boot.h"
#include "arm_internal.h"
/****************************************************************************
* Public Data
@@ -91,7 +91,7 @@
/* Located in Destination Memory */
#define IMAGE_ENTRY_ADDRESS ((uint32_t)&_vectors)
#define IMAGE_ENTRY_ADDRESS ((uint32_t)_vectors)
#define IMAG_VECTOR_TABLE LOCATE_IN_DEST(&g_image_vector_table)
/****************************************************************************
@@ -152,6 +152,5 @@ struct boot_data_s
extern const struct boot_data_s g_boot_data;
extern const uint8_t g_dcd_data[];
extern const uint32_t _vectors[];
#endif /* __BOARDS_ARM_IMXRT_TEENSY_4_SRC_IMXRT_FLEXSPI_NOR_BOOT_H */