mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 22:58:10 +08:00
aerofc-v1:Scope CRASHDUMP_RESET_ONLY to BOARD_CRASHDUMP_RESET_ONLY
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user