Remove TF-A specific assert and abort
Replace TF-A specific assert and abort handlers by platform_ functions
which should be implemented by the environment.
Signed-off-by: Imre Kis <imre.kis@arm.com>
Change-Id: I613cede8d85919aaaa175ac20d2ed4f4b1abef40
diff --git a/components/common/libc/src/abort.c b/components/common/libc/src/abort.c
index ac27f62..c5a7920 100644
--- a/components/common/libc/src/abort.c
+++ b/components/common/libc/src/abort.c
@@ -1,15 +1,13 @@
/*
- * Copyright (c) 2013-2018, Arm Limited and Contributors. All rights reserved.
+ * Copyright (c) 2013-2024, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
-#include <stdlib.h>
+#include <cdefs.h>
+#include "libc_platform.h"
-#include <common/debug.h>
-
-void abort(void)
+void __dead2 abort(void)
{
- ERROR("ABORT\n");
- panic();
+ platform_abort();
}