aboutsummaryrefslogtreecommitdiff
path: root/lib/stdlib/abort.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stdlib/abort.c')
-rw-r--r--lib/stdlib/abort.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/stdlib/abort.c b/lib/stdlib/abort.c
new file mode 100644
index 000000000..50780335d
--- /dev/null
+++ b/lib/stdlib/abort.c
@@ -0,0 +1,16 @@
+/*
+ * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <debug.h>
+
+/*
+ * This is a basic implementation. This could be improved.
+ */
+void abort (void)
+{
+ ERROR("ABORT\n");
+ panic();
+}