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:
luohui2320@gmail.com 2011-05-30 14:31:26 +00:00
parent 12fba54f91
commit b41b576be9
1 changed files with 3 additions and 4 deletions

View File

@ -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();