[rtems commit] bsps/arm: Use _Assert()
Sebastian Huber
sebh at rtems.org
Thu Aug 20 12:56:17 UTC 2020
Module: rtems
Branch: master
Commit: 95d37b630729c303d152bda8e282235c5cf1fd75
Changeset: http://git.rtems.org/rtems/commit/?id=95d37b630729c303d152bda8e282235c5cf1fd75
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Aug 3 12:16:51 2020 +0200
bsps/arm: Use _Assert()
---
bsps/arm/shared/start/arm-a9mpcore-smp.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/bsps/arm/shared/start/arm-a9mpcore-smp.c b/bsps/arm/shared/start/arm-a9mpcore-smp.c
index c255013..dd05126 100644
--- a/bsps/arm/shared/start/arm-a9mpcore-smp.c
+++ b/bsps/arm/shared/start/arm-a9mpcore-smp.c
@@ -12,8 +12,6 @@
* http://www.rtems.org/license/LICENSE.
*/
-#include <assert.h>
-
#include <rtems/score/smpimpl.h>
#include <libcpu/arm-cp15.h>
@@ -42,7 +40,8 @@ void _CPU_SMP_Finalize_initialization(uint32_t cpu_count)
bsp_inter_processor_interrupt,
NULL
);
- assert(sc == RTEMS_SUCCESSFUL);
+ _Assert(sc == RTEMS_SUCCESSFUL);
+ (void) sc;
#if defined(BSP_DATA_CACHE_ENABLED) || defined(BSP_INSTRUCTION_CACHE_ENABLED)
/* Enable unified L2 cache */
More information about the vc
mailing list