浏览代码

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>
Rafal Jaworowski 17 年之前
父节点
当前提交
63f732d3d3
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      api_examples/libgenwrap.c

+ 6 - 1
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) ;
+}