Skip to content

Commit 81a5f7d

Browse files
erhankurespressif-bot
authored andcommitted
fix(coredump): only clear high bit in PC when set
1 parent 5a0e161 commit 81a5f7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/espcoredump/src/port/xtensa/core_dump_port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ static esp_err_t esp_core_dump_get_regs_from_stack(void* stack_addr,
241241
for (int i = 0; i < XT_SOL_AR_NUM; i++) {
242242
regs->ar[i] = stack_arr[XT_SOL_AR_START + i];
243243
}
244-
regs->pc = (regs->pc & 0x3fffffff);
244+
245245
if (regs->pc & 0x80000000) {
246246
regs->pc = (regs->pc & 0x3fffffff);
247247
}

0 commit comments

Comments
 (0)