forked from Archive/PX4-Autopilot
aerofc-v1:Scope CRASHDUMP_RESET_ONLY to BOARD_CRASHDUMP_RESET_ONLY
This commit is contained in:
parent
91d8c31f7b
commit
e358486ef7
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue