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/include/libc_platform.h b/components/common/libc/include/libc_platform.h
new file mode 100644
index 0000000..77c5706
--- /dev/null
+++ b/components/common/libc/include/libc_platform.h
@@ -0,0 +1,20 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+/*
+ * Copyright (c) 2021-2024, Arm Limited and Contributors. All rights reserved.
+ */
+
+#ifndef LIBC_PLATFORM_H_
+#define LIBC_PLATFORM_H_
+
+#include <cdefs.h>
+
+/*
+ * Generic assert fail and abort handler function definitions.
+ * Should be implemented by the environment.
+ */
+void __dead2 platform_assert(const char *file, int line, const char *func,
+ const char *failedexpr);
+
+void __dead2 platform_abort(void);
+
+#endif /* LIBC_PLATFORM_H_ */