diff options
author | Ilya Stolyarov <i.stolyarov@thirdpin.ru> | 2018-12-13 22:43:32 +0300 |
---|---|---|
committer | Ilya Stolyarov <i.stolyarov@thirdpin.ru> | 2018-12-18 11:50:04 +0300 |
commit | 837bfe12938287a09acba5e5208d1cf8ab700330 (patch) | |
tree | f1784086e72dc66366d26e66132ede9b6e7cdb91 | |
parent | 4429f37952efe8920c4c9e7b3d560e3591e9b403 (diff) |
IMPR: [isr] Do not rewrite wrote address
-rw-r--r-- | irq/cm3cpp_irq.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/irq/cm3cpp_irq.cpp b/irq/cm3cpp_irq.cpp index c7f0c84..d9a390c 100644 --- a/irq/cm3cpp_irq.cpp +++ b/irq/cm3cpp_irq.cpp @@ -20,8 +20,12 @@ static IInterruptable* isr_vector_table[INTERRUPTS_COUNT]; struct InterruptInitializer { InterruptInitializer() { for (uint32_t i = 0; i < INTERRUPTS_COUNT; ++i) { - isr_vector_table[i] = &_empty_interrupt; // init an irq table with - } // empty functions for safe + if (isr_vector_table[i] == nullptr) + { + /* init an irq table with empty functions for safe */ + isr_vector_table[i] = &_empty_interrupt; + } + } } } _init; |