|
@@ -32,6 +32,9 @@ extern int rt_application_init(void);
|
|
|
extern void tlb_refill_exception(void);
|
|
|
extern void general_exception(void);
|
|
|
extern void irq_exception(void);
|
|
|
+extern void rt_hw_cache_init(void);
|
|
|
+extern void invalidate_writeback_dcache_all(void);
|
|
|
+extern void invalidate_icache_all(void);
|
|
|
|
|
|
/**
|
|
|
* This function will startup RT-Thread RTOS.
|
|
@@ -51,6 +54,9 @@ void rtthread_startup(void)
|
|
|
rt_memcpy((void *)(A_K0BASE + 0x180), general_exception, 0x20);
|
|
|
rt_memcpy((void *)(A_K0BASE + 0x200), irq_exception, 0x20);
|
|
|
|
|
|
+ invalidate_writeback_dcache_all();
|
|
|
+ invalidate_icache_all();
|
|
|
+
|
|
|
/* init board */
|
|
|
rt_hw_board_init();
|
|
|
|