aerofc-v1:Scope CRASHDUMP_RESET_ONLY to BOARD_CRASHDUMP_RESET_ONLY

This commit is contained in:
David Sidrane 2018-12-06 16:15:49 -08:00
parent 91d8c31f7b
commit e358486ef7
2 changed files with 3 additions and 3 deletions

View File

@ -139,7 +139,7 @@
#define MEMORY_CONSTRAINED_SYSTEM #define MEMORY_CONSTRAINED_SYSTEM
#define CRASHDUMP_RESET_ONLY #define BOARD_CRASHDUMP_RESET_ONLY
__BEGIN_DECLS __BEGIN_DECLS

View File

@ -194,7 +194,7 @@ static uint32_t *__attribute__((noinline)) __sdata_addr(void)
__EXPORT void board_crashdump(uintptr_t currentsp, FAR void *tcb, FAR const uint8_t *filename, int lineno) __EXPORT void board_crashdump(uintptr_t currentsp, FAR void *tcb, FAR const uint8_t *filename, int lineno)
{ {
#ifndef CRASHDUMP_RESET_ONLY #ifndef BOARD_CRASHDUMP_RESET_ONLY
/* We need a chunk of ram to save the complete context in. /* We need a chunk of ram to save the complete context in.
* Since we are going to reboot we will use &_sdata * Since we are going to reboot we will use &_sdata
* which is the lowest memory and the amount we will save * which is the lowest memory and the amount we will save
@ -334,7 +334,7 @@ __EXPORT void board_crashdump(uintptr_t currentsp, FAR void *tcb, FAR const uint
up_lowputc('!'); up_lowputc('!');
} }
#endif /* CRASHDUMP_RESET_ONLY */ #endif /* BOARD_CRASHDUMP_RESET_ONLY */
#if defined(CONFIG_BOARD_RESET_ON_CRASH) #if defined(CONFIG_BOARD_RESET_ON_CRASH)
board_reset(0); board_reset(0);