summaryrefslogtreecommitdiffstats
path: root/lib/libc/abort.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/abort.c')
-rw-r--r--lib/libc/abort.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/libc/abort.c b/lib/libc/abort.c
new file mode 100644
index 0000000..ac27f62
--- /dev/null
+++ b/lib/libc/abort.c
@@ -0,0 +1,15 @@
+/*
+ * Copyright (c) 2013-2018, Arm Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <stdlib.h>
+
+#include <common/debug.h>
+
+void abort(void)
+{
+ ERROR("ABORT\n");
+ panic();
+}