We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40f51fd commit 3bfd03bCopy full SHA for 3bfd03b
portable/MPLAB/PIC32MZ/port.c
@@ -382,7 +382,7 @@ portFORCE_INLINE BaseType_t xPortIsInsideInterrupt( void )
382
/* Obtain the number of the currently executing interrupt. */
383
__asm volatile("mfc0 %0, $12" : "=r" (ulCurrentInterrupt));
384
385
- if( ulCurrentInterrupt == 0 )
+ if( ( ulCurrentInterrupt && portEXL_BIT ) != 0U )
386
{
387
xReturn = pdFALSE;
388
}
0 commit comments