From: Rafal Jaworowski <raj@semihalf.com>
Date: Tue, 29 Jan 2008 16:00:34 +0000 (+0100)
Subject: API: Provide dummy halt() in the glue layer.
X-Git-Tag: v2025.01-rc5-pxa1908~22562^2
X-Git-Url: http://git.dujemihanovic.xyz/img/html/static/%7B%7B%20.Permalink%20%7D%7D?a=commitdiff_plain;h=63f732d3d3880feb531f48af247c025bf01462b0;p=u-boot.git

API: Provide dummy halt() in the glue layer.

This fixes a demo app link failure on platforms configured with CONFIG_PANIC_HANG.

Signed-off-by: Rafal Jaworowski <raj@semihalf.com>
---

diff --git a/api_examples/libgenwrap.c b/api_examples/libgenwrap.c
index df62633ca7..2b62badfb8 100644
--- a/api_examples/libgenwrap.c
+++ b/api_examples/libgenwrap.c
@@ -84,7 +84,12 @@ void do_reset (void)
 	ub_reset();
 }
 
-void *malloc(size_t len)
+void *malloc (size_t len)
 {
 	return NULL;
 }
+
+void hang (void)
+{
+	while (1) ;
+}