提交 b41b576b 编写于 作者: L luohui2320@gmail.com

enable icache for at91sam9260

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1442 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 12fba54f
......@@ -64,13 +64,12 @@ extern void finsh_system_init(void);
*/
void rtthread_startup(void)
{
rt_uint32_t UNUSED level;
/* disable interrupt first */
level = rt_hw_interrupt_disable();
rt_hw_interrupt_disable();
/* enable cpu cache */
rt_hw_cpu_icache_disable();
mmu_invalidate_icache();
rt_hw_cpu_icache_enable();
rt_hw_cpu_dcache_enable();
/* initialize hardware interrupt */
rt_hw_interrupt_init();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册