diff options
author | Diego Ismirlian <dismirlian@gmail.com> | 2019-10-02 15:18:08 -0300 |
---|---|---|
committer | Diego Ismirlian <dismirlian@gmail.com> | 2019-10-02 15:18:08 -0300 |
commit | 1ca49e0b903954c1fd463d29e51faa22436fa33f (patch) | |
tree | 2fc5ad4d0e02b0cd50ff6e874f7d94cec60bf7dd /os | |
parent | 41f2f8462a2dc71c8194703fb879e6a667fb723b (diff) | |
download | ChibiOS-Contrib-1ca49e0b903954c1fd463d29e51faa22436fa33f.tar.gz ChibiOS-Contrib-1ca49e0b903954c1fd463d29e51faa22436fa33f.tar.bz2 ChibiOS-Contrib-1ca49e0b903954c1fd463d29e51faa22436fa33f.zip |
Fault handlers: v7m: simplify
Diffstat (limited to 'os')
-rw-r--r-- | os/common/ports/ARMCMx/compilers/GCC/utils/fault_handlers_v7m.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/os/common/ports/ARMCMx/compilers/GCC/utils/fault_handlers_v7m.c b/os/common/ports/ARMCMx/compilers/GCC/utils/fault_handlers_v7m.c index 37b7fc7..587fce3 100644 --- a/os/common/ports/ARMCMx/compilers/GCC/utils/fault_handlers_v7m.c +++ b/os/common/ports/ARMCMx/compilers/GCC/utils/fault_handlers_v7m.c @@ -131,10 +131,7 @@ static void _init_fault_info(void) { } static void _save_fault_info(void) { - memset(&fault_info.decoded_fault_registers, 0, sizeof(fault_info.decoded_fault_registers)); -#ifndef FAULT_NO_PRINT - memset(&fault_info.decoded_info_string, 0, sizeof(fault_info.decoded_info_string)); -#endif + memset(&fault_info, 0, sizeof(fault_info)); if (ch.rlist.current) { fault_printf("Thread: 0x%08x, %s", |