tests: arch: arm_irq_vector_table: Update to run on MXRT685

Fix for Issue#35658.
Update the custom vector table to add the OS Event timer
interrupt which is used on RT685 as the kernel system timer

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
This commit is contained in:
Mahesh Mahadevan 2021-06-24 11:06:25 -05:00 committed by Anas Nashif
parent 0ef77d4ea4
commit c3567c6f33
2 changed files with 13 additions and 1 deletions

View file

@ -24,7 +24,7 @@ static struct k_spinlock lock;
static uint64_t last_count;
static OSTIMER_Type *base;
static void mcux_lpc_ostick_isr(void *arg)
void mcux_lpc_ostick_isr(void *arg)
{
ARG_UNUSED(arg);

View file

@ -230,6 +230,18 @@ vth __irq_vector_table _irq_vector_table[] = {
isr0, isr1, isr2, 0,
rtc_isr
};
#elif defined(CONFIG_SOC_SERIES_IMX_RT6XX) && defined(CONFIG_MCUX_OS_TIMER)
/* MXRT685 employs a OS Event timer to implement the Kernel system
* timer, instead of the ARM Cortex-M SysTick. Therefore, a pointer to
* the timer ISR needs to be added in the custom vector table to handle
* the timer "tick" interrupts.
*/
extern void mcux_lpc_ostick_isr(void);
vth __irq_vector_table _irq_vector_table[] = {
isr0, isr1, isr2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
mcux_lpc_ostick_isr
};
#else
vth __irq_vector_table _irq_vector_table[] = {
isr0, isr1, isr2