summaryrefslogtreecommitdiff
path: root/core/cortex-m/panic.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/cortex-m/panic.c')
-rw-r--r--core/cortex-m/panic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/cortex-m/panic.c b/core/cortex-m/panic.c
index 7daedbf7ab..f5a8f23c5c 100644
--- a/core/cortex-m/panic.c
+++ b/core/cortex-m/panic.c
@@ -199,13 +199,13 @@ static uint32_t get_exception_frame_size(const struct panic_data *pdata)
/* CPU uses xPSR[9] to indicate whether it padded the stack for
* alignment or not. */
- if (pdata->cm.frame[7] & (1 << 9))
+ if (pdata->cm.frame[7] & BIT(9))
frame_size += sizeof(uint32_t);
#ifdef CONFIG_FPU
/* CPU uses EXC_RETURN[4] to indicate whether it stored extended
* frame for FPU or not. */
- if (!(pdata->cm.regs[11] & (1 << 4)))
+ if (!(pdata->cm.regs[11] & BIT(4)))
frame_size += 18 * sizeof(uint32_t);
#endif