enable icache for at91sam9260
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1442 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
12fba54f91
commit
b41b576be9
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue