You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/05/19 16:51:25 UTC

[13/18] incubator-mynewt-core git commit: os/cortex_m4; install default IRQ handler for NMI.

os/cortex_m4; install default IRQ handler for NMI.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/9add53bd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/9add53bd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/9add53bd

Branch: refs/heads/develop
Commit: 9add53bdf0279e77a6f6cfb7511ce27994dd6671
Parents: c37da5d
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Thu May 19 09:28:56 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Thu May 19 09:35:45 2016 -0700

----------------------------------------------------------------------
 libs/os/src/arch/cortex_m4/os_arch_arm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/9add53bd/libs/os/src/arch/cortex_m4/os_arch_arm.c
----------------------------------------------------------------------
diff --git a/libs/os/src/arch/cortex_m4/os_arch_arm.c b/libs/os/src/arch/cortex_m4/os_arch_arm.c
index 837e941..2bd084a 100755
--- a/libs/os/src/arch/cortex_m4/os_arch_arm.c
+++ b/libs/os/src/arch/cortex_m4/os_arch_arm.c
@@ -199,7 +199,8 @@ os_arch_os_init(void)
          * state at the time of the interrupt, and few other regs which
          * should help in trying to figure out what went wrong.
          */
-        NVIC_SetVector(-13, (uint32_t)os_default_irq_asm); /* Hardfault */
+        NVIC_SetVector(NonMaskableInt_IRQn, (uint32_t)os_default_irq_asm);
+        NVIC_SetVector(-13, (uint32_t)os_default_irq_asm);
         NVIC_SetVector(MemoryManagement_IRQn, (uint32_t)os_default_irq_asm);
         NVIC_SetVector(BusFault_IRQn, (uint32_t)os_default_irq_asm);
         NVIC_SetVector(UsageFault_IRQn, (uint32_t)os_default_irq_asm);