summaryrefslogtreecommitdiffstats
path: root/pbl
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-10-26 08:43:42 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-10-26 08:57:07 +0200
commit5b620bce2e2e028d8cc949681816cbfae44b9ed0 (patch)
tree5a6d54a770f229965d30537a66a16e8b9d43a462 /pbl
parent5b0fc19196c8cfbd061708fadedbcefb6be3156e (diff)
downloadbarebox-5b620bce2e2e028d8cc949681816cbfae44b9ed0.tar.gz
pbl: provide hang() function for the pbl
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'pbl')
-rw-r--r--pbl/misc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pbl/misc.c b/pbl/misc.c
index 47e9cea..a2cb44d 100644
--- a/pbl/misc.c
+++ b/pbl/misc.c
@@ -4,6 +4,11 @@
#include <linux/string.h>
#include <linux/ctype.h>
+void __noreturn hang(void)
+{
+ while (1);
+}
+
void __noreturn panic(const char *fmt, ...)
{
while(1);