Skip to content

Commit 3bfd03b

Browse files
committed
Verify EXL bit only
1 parent 40f51fd commit 3bfd03b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

portable/MPLAB/PIC32MZ/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ portFORCE_INLINE BaseType_t xPortIsInsideInterrupt( void )
382382
/* Obtain the number of the currently executing interrupt. */
383383
__asm volatile("mfc0 %0, $12" : "=r" (ulCurrentInterrupt));
384384

385-
if( ulCurrentInterrupt == 0 )
385+
if( ( ulCurrentInterrupt && portEXL_BIT ) != 0U )
386386
{
387387
xReturn = pdFALSE;
388388
}

0 commit comments

Comments
 (0)