You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by vi...@apache.org on 2021/10/29 16:34:05 UTC
[mynewt-core] branch master updated: Define mtb_state on cortex m33
if OS_COREDUMP is enabled
This is an automated email from the ASF dual-hosted git repository.
vipulrahane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 244c50c Define mtb_state on cortex m33 if OS_COREDUMP is enabled
new 54c14f6 Merge pull request #2701 from t3zeng/master
244c50c is described below
commit 244c50c447e6fbc16a25010b53c5822c12da052c
Author: Tian Zeng <ti...@proxy.com>
AuthorDate: Wed Oct 27 14:41:50 2021 -0400
Define mtb_state on cortex m33 if OS_COREDUMP is enabled
---
kernel/os/src/arch/cortex_m33/os_fault.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/os/src/arch/cortex_m33/os_fault.c b/kernel/os/src/arch/cortex_m33/os_fault.c
index 15b5f24..4aa0376 100644
--- a/kernel/os/src/arch/cortex_m33/os_fault.c
+++ b/kernel/os/src/arch/cortex_m33/os_fault.c
@@ -115,7 +115,9 @@ trap_to_coredump(struct trap_frame *tf, struct coredump_regs *regs)
regs->pc = tf->ef->pc;
regs->psr = tf->ef->psr;
}
+#endif
+#if MYNEWT_VAL(OS_COREDUMP)
struct mtb_state {
uint32_t mtb_position_reg;
uint32_t mtb_master_reg;