Skip to content

Commit 048a896

Browse files
Bartosz Szatkowskibulislaw
authored andcommitted
Update definitions of CPSR modes
1 parent 717087c commit 048a896

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

platform/mbed_critical.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ bool core_util_is_isr_active(void)
3939
{
4040
#if defined(__CORTEX_A9)
4141
switch(__get_CPSR() & 0x1FU) {
42-
case MODE_USR:
43-
case MODE_SYS:
42+
case CPSR_M_USR:
43+
case CPSR_M_SYS:
4444
return false;
45-
case MODE_SVC:
45+
case CPSR_M_SVC:
4646
default:
4747
return true;
4848
}

0 commit comments

Comments
 (0)