clean up code
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@909 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
b1357bd0db
commit
160474c997
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user