diff options
Diffstat (limited to 'middleware/multicore/open-amp/porting/vf6xx_m4/platform.c')
-rw-r--r-- | middleware/multicore/open-amp/porting/vf6xx_m4/platform.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/middleware/multicore/open-amp/porting/vf6xx_m4/platform.c b/middleware/multicore/open-amp/porting/vf6xx_m4/platform.c index 6c9fffa..46287ad 100644 --- a/middleware/multicore/open-amp/porting/vf6xx_m4/platform.c +++ b/middleware/multicore/open-amp/porting/vf6xx_m4/platform.c @@ -95,6 +95,11 @@ void _shutdown_cpu(int cpu_id) { } +int platform_in_isr(void) +{ + return ((SCB->ICSR & SCB_ICSR_VECTACTIVE_Msk) != 0); +} + void platform_isr(int vect_id, void *data) { hil_isr(((struct proc_vring *) data)); |