commit | 35e4e8d6ff077d542bcfc689c48c604b38b4db40 | [log] [tgz] |
---|---|---|
author | Rafal Jaworowski <raj@semihalf.com> | Tue Jan 29 17:00:34 2008 +0100 |
committer | Rafal Jaworowski <raj@semihalf.com> | Tue Jan 29 17:00:34 2008 +0100 |
tree | 8a4975ee8e37bfa02821b7114cf579b227ff4b0a | |
parent | f42e3419ce386a02582142f98dd3e504dbb14437 [diff] [blame] |
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 df62633..2b62bad 100644 --- a/api_examples/libgenwrap.c +++ b/api_examples/libgenwrap.c
@@ -84,7 +84,12 @@ ub_reset(); } -void *malloc(size_t len) +void *malloc (size_t len) { return NULL; } + +void hang (void) +{ + while (1) ; +}