提交 7f5d09c9 编写于 作者: B bernard.xiong

fix compiling warning.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@821 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 b3207276
......@@ -42,7 +42,7 @@ void rt_hw_backtrace(rt_uint32_t *fp, rt_uint32_t thread_entry)
for(i=0; i<10; i++)
{
fp = *(fp - 3);
fp = (rt_uint32_t *)*(fp - 3);
pc = *fp ;
func_entry = pc - 0xC;
......
......@@ -12,6 +12,7 @@
* 2006-03-13 Bernard first version
*/
#include <rthw.h>
#include <rtthread.h>
#include "s3c24x0.h"
......@@ -180,7 +181,10 @@ void rt_hw_cpu_shutdown()
rt_kprintf("shutdown...\n");
level = rt_hw_interrupt_disable();
RT_ASSERT(RT_NULL);
while (level)
{
RT_ASSERT(0);
}
}
/*@}*/
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册