Skip to content
Snippets Groups Projects
Commit e358486e authored by David Sidrane's avatar David Sidrane
Browse files

aerofc-v1:Scope CRASHDUMP_RESET_ONLY to BOARD_CRASHDUMP_RESET_ONLY

parent 91d8c31f
No related branches found
No related tags found
No related merge requests found
......@@ -139,7 +139,7 @@
#define MEMORY_CONSTRAINED_SYSTEM
#define CRASHDUMP_RESET_ONLY
#define BOARD_CRASHDUMP_RESET_ONLY
__BEGIN_DECLS
......
......@@ -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)
{
#ifndef CRASHDUMP_RESET_ONLY
#ifndef BOARD_CRASHDUMP_RESET_ONLY
/* We need a chunk of ram to save the complete context in.
* Since we are going to reboot we will use &_sdata
* 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('!');
}
#endif /* CRASHDUMP_RESET_ONLY */
#endif /* BOARD_CRASHDUMP_RESET_ONLY */
#if defined(CONFIG_BOARD_RESET_ON_CRASH)
board_reset(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment