[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1409959302-13976-1-git-send-email-behanw@converseincode.com>
Date: Fri, 5 Sep 2014 16:21:42 -0700
From: behanw@...verseincode.com
To: catalin.marinas@....com, jays.lee@...sung.com, will.deacon@....com
Cc: kgene.kim@...sung.com, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, steve.capper@...aro.org,
sungjinn.chung@...sung.com, Mark Charlebois <charlebm@...il.com>,
Behan Webster <behanw@...verseincode.com>
Subject: [PATCH] arm64: LLVMLinux: Add missing abort() for AARCH64
From: Mark Charlebois <charlebm@...il.com>
Add missing abort for arch aarch64.
This patch makes the aarch64 kernel able to compile with gcc or clang.
Signed-off-by: Mark Charlebois <charlebm@...il.com>
Signed-off-by: Behan Webster <behanw@...verseincode.com>
---
arch/arm64/kernel/traps.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c
index 02cd3f0..123cd6e 100644
--- a/arch/arm64/kernel/traps.c
+++ b/arch/arm64/kernel/traps.c
@@ -349,6 +349,15 @@ void __pgd_error(const char *file, int line, unsigned long val)
pr_crit("%s:%d: bad pgd %016lx.\n", file, line, val);
}
+void abort(void)
+{
+ BUG();
+
+ /* if that doesn't kill us, halt */
+ panic("Oops failed to kill thread");
+}
+EXPORT_SYMBOL(abort);
+
void __init trap_init(void)
{
return;
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists