summaryrefslogtreecommitdiff
path: root/api_examples/libgenwrap.c
diff options
context:
space:
mode:
authorRafal Jaworowski <raj@semihalf.com>2008-01-29 17:00:34 +0100
committerRafal Jaworowski <raj@semihalf.com>2008-01-29 17:00:34 +0100
commit63f732d3d3880feb531f48af247c025bf01462b0 (patch)
tree8a4975ee8e37bfa02821b7114cf579b227ff4b0a /api_examples/libgenwrap.c
parent0dc1fc22af86d16993388d9ed9630dbaa2d51826 (diff)
downloadu-boot-imx-63f732d3d3880feb531f48af247c025bf01462b0.zip
u-boot-imx-63f732d3d3880feb531f48af247c025bf01462b0.tar.gz
u-boot-imx-63f732d3d3880feb531f48af247c025bf01462b0.tar.bz2
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>
Diffstat (limited to 'api_examples/libgenwrap.c')
-rw-r--r--api_examples/libgenwrap.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/api_examples/libgenwrap.c b/api_examples/libgenwrap.c
index df62633..2b62bad 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) ;
+}