mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08:00
Correction to ARM RAM vectors logic from Paul Y. Zhang
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
* the table.
|
||||
*/
|
||||
|
||||
#define ARMV7M_VECTAB_SIZE (ARMV7M_PERIPHERAL_INTERRUPTS)
|
||||
#define ARMV7M_VECTAB_SIZE (ARMV7M_PERIPHERAL_INTERRUPTS + 16)
|
||||
|
||||
/************************************************************************************
|
||||
* Public Data
|
||||
|
||||
@@ -100,7 +100,7 @@ void up_ramvec_initialize(void)
|
||||
|
||||
/* The vector table must be aligned */
|
||||
|
||||
DEBUGASSERT(((uintptr)g_ram_vectors & ~NVIC_VECTAB_TBLOFF_MASK) == 0);
|
||||
DEBUGASSERT(((uint32_t)g_ram_vectors & ~NVIC_VECTAB_TBLOFF_MASK) == 0);
|
||||
|
||||
/* Copy the ROM vector table at address zero to RAM vector table.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user