From e358486ef70b668071178cf7b3bc926c6ad13b08 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Thu, 6 Dec 2018 16:15:49 -0800 Subject: [PATCH] aerofc-v1:Scope CRASHDUMP_RESET_ONLY to BOARD_CRASHDUMP_RESET_ONLY --- boards/intel/aerofc-v1/src/board_config.h | 2 +- src/drivers/boards/common/board_crashdump.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/boards/intel/aerofc-v1/src/board_config.h b/boards/intel/aerofc-v1/src/board_config.h index cc617f4668..0fb14686c7 100644 --- a/boards/intel/aerofc-v1/src/board_config.h +++ b/boards/intel/aerofc-v1/src/board_config.h @@ -139,7 +139,7 @@ #define MEMORY_CONSTRAINED_SYSTEM -#define CRASHDUMP_RESET_ONLY +#define BOARD_CRASHDUMP_RESET_ONLY __BEGIN_DECLS diff --git a/src/drivers/boards/common/board_crashdump.c b/src/drivers/boards/common/board_crashdump.c index b2c83405d9..afde200ce7 100644 --- a/src/drivers/boards/common/board_crashdump.c +++ b/src/drivers/boards/common/board_crashdump.c @@ -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);