From b41b576be9b0e9e4f48fc088a183fb63562d124b Mon Sep 17 00:00:00 2001 From: "luohui2320@gmail.com" Date: Mon, 30 May 2011 14:31:26 +0000 Subject: [PATCH] enable icache for at91sam9260 git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1442 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- bsp/at91sam9260/startup.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bsp/at91sam9260/startup.c b/bsp/at91sam9260/startup.c index 97afe0b124..e23dfa1f5e 100755 --- a/bsp/at91sam9260/startup.c +++ b/bsp/at91sam9260/startup.c @@ -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();