From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rafal Jaworowski Date: Tue, 29 Jan 2008 18:19:08 +0100 Subject: [U-Boot-Users] [PATCH] API: Provide dummy halt() in the glue layer. In-Reply-To: <479F541C.2040205@semihalf.com> References: <479F541C.2040205@semihalf.com> Message-ID: <20080129171908.GB9531@semihalf.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This fixes a demo app link failure on platforms configured with CONFIG_PANIC_HANG. Signed-off-by: Rafal Jaworowski --- api_examples/libgenwrap.c | 7 ++++++- 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) ; +} -- 1.5.2.2