提交 160474c9 编写于 作者: qiuyiuestc's avatar qiuyiuestc

clean up code

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@909 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 b1357bd0
......@@ -17,7 +17,7 @@
#include "s3c24x0.h"
// #define _MMUTT_STARTADDRESS 0x30080000
#define _MMUTT_STARTADDRESS 0x30200000
#define _MMUTT_STARTADDRESS 0x30400000
#define DESC_SEC (0x2|(1<<4))
#define CB (3<<2) //cache_on, write_back
......
......@@ -101,8 +101,8 @@ void rt_hw_set_divider(rt_uint8_t hdivn, rt_uint8_t pdivn)
void rt_hw_clock_init(void)
{
LOCKTIME = 0xFFFFFFFF;
rt_hw_set_divider(HDIVN, PDIVN);
rt_hw_set_upll_clock(UPL_SDIV, UPL_PDIV, UPL_MDIV);
rt_hw_set_mpll_clock(MPL_SDIV, MPL_PDIV, MPL_MIDV);
rt_hw_set_upll_clock(UPL_SDIV, UPL_PDIV, UPL_MDIV);
rt_hw_set_divider(HDIVN, PDIVN);
}
......@@ -57,8 +57,12 @@ void rt_hw_trap_udef(struct rt_hw_register *regs)
rt_kprintf("undefined instruction\n");
rt_kprintf("thread - %s stack:\n", rt_current_thread->name);
rt_hw_backtrace((rt_uint32_t *)regs->fp, (rt_uint32_t)rt_current_thread->entry);
#ifdef RT_USING_FINSH
list_thread();
#endif
while (1);
rt_hw_cpu_shutdown();
}
......@@ -93,8 +97,12 @@ void rt_hw_trap_pabt(struct rt_hw_register *regs)
rt_kprintf("prefetch abort\n");
rt_kprintf("thread - %s stack:\n", rt_current_thread->name);
rt_hw_backtrace((rt_uint32_t *)regs->fp, (rt_uint32_t)rt_current_thread->entry);
#ifdef RT_USING_FINSH
list_thread();
#endif
while (1);
rt_hw_cpu_shutdown();
}
......@@ -112,8 +120,12 @@ void rt_hw_trap_dabt(struct rt_hw_register *regs)
rt_kprintf("data abort\n");
rt_kprintf("thread - %s stack:\n", rt_current_thread->name);
rt_hw_backtrace((rt_uint32_t *)regs->fp, (rt_uint32_t)rt_current_thread->entry);
#ifdef RT_USING_FINSH
list_thread();
#endif
while (1);
rt_hw_cpu_shutdown();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册