summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
author[email protected] <[email protected]>2011-05-30 14:31:26 +0000
committer[email protected] <[email protected]>2011-05-30 14:31:26 +0000
commitb41b576be9b0e9e4f48fc088a183fb63562d124b (patch)
tree5916f28a2d01f08f4118e6ed69095c532b54836f /bsp
parent12fba54f9151c2c9072041772acee72f77d662be (diff)
enable icache for at91sam9260
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1442 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp')
-rwxr-xr-xbsp/at91sam9260/startup.c7
1 files 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();