@@ -743,7 +743,6 @@ static void __init build_r3000_tlb_refill_handler(void)
743743#endif
744744
745745 memcpy ((void * )CAC_BASE , tlb_handler , 0x80 );
746- flush_icache_range (CAC_BASE , CAC_BASE + 0x80 );
747746}
748747
749748/*
@@ -1258,7 +1257,6 @@ static void __init build_r4000_tlb_refill_handler(void)
12581257#endif
12591258
12601259 memcpy ((void * )CAC_BASE , final_handler , 0x100 );
1261- flush_icache_range (CAC_BASE , CAC_BASE + 0x100 );
12621260}
12631261
12641262/*
@@ -1519,9 +1517,6 @@ static void __init build_r3000_tlb_load_handler(void)
15191517 printk ("%08x\n" , handle_tlbl [i ]);
15201518 }
15211519#endif
1522-
1523- flush_icache_range ((unsigned long )handle_tlbl ,
1524- (unsigned long )handle_tlbl + FASTPATH_SIZE * sizeof (u32 ));
15251520}
15261521
15271522static void __init build_r3000_tlb_store_handler (void )
@@ -1559,9 +1554,6 @@ static void __init build_r3000_tlb_store_handler(void)
15591554 printk ("%08x\n" , handle_tlbs [i ]);
15601555 }
15611556#endif
1562-
1563- flush_icache_range ((unsigned long )handle_tlbs ,
1564- (unsigned long )handle_tlbs + FASTPATH_SIZE * sizeof (u32 ));
15651557}
15661558
15671559static void __init build_r3000_tlb_modify_handler (void )
@@ -1599,9 +1591,6 @@ static void __init build_r3000_tlb_modify_handler(void)
15991591 printk ("%08x\n" , handle_tlbm [i ]);
16001592 }
16011593#endif
1602-
1603- flush_icache_range ((unsigned long )handle_tlbm ,
1604- (unsigned long )handle_tlbm + FASTPATH_SIZE * sizeof (u32 ));
16051594}
16061595
16071596/*
@@ -1691,9 +1680,6 @@ static void __init build_r4000_tlb_load_handler(void)
16911680 printk ("%08x\n" , handle_tlbl [i ]);
16921681 }
16931682#endif
1694-
1695- flush_icache_range ((unsigned long )handle_tlbl ,
1696- (unsigned long )handle_tlbl + FASTPATH_SIZE * sizeof (u32 ));
16971683}
16981684
16991685static void __init build_r4000_tlb_store_handler (void )
@@ -1730,9 +1716,6 @@ static void __init build_r4000_tlb_store_handler(void)
17301716 printk ("%08x\n" , handle_tlbs [i ]);
17311717 }
17321718#endif
1733-
1734- flush_icache_range ((unsigned long )handle_tlbs ,
1735- (unsigned long )handle_tlbs + FASTPATH_SIZE * sizeof (u32 ));
17361719}
17371720
17381721static void __init build_r4000_tlb_modify_handler (void )
@@ -1770,9 +1753,6 @@ static void __init build_r4000_tlb_modify_handler(void)
17701753 printk ("%08x\n" , handle_tlbm [i ]);
17711754 }
17721755#endif
1773-
1774- flush_icache_range ((unsigned long )handle_tlbm ,
1775- (unsigned long )handle_tlbm + FASTPATH_SIZE * sizeof (u32 ));
17761756}
17771757
17781758void __init build_tlb_refill_handler (void )
@@ -1820,3 +1800,13 @@ void __init build_tlb_refill_handler(void)
18201800 }
18211801 }
18221802}
1803+
1804+ void __init flush_tlb_handlers (void )
1805+ {
1806+ flush_icache_range ((unsigned long )handle_tlbl ,
1807+ (unsigned long )handle_tlbl + sizeof (handle_tlbl ));
1808+ flush_icache_range ((unsigned long )handle_tlbs ,
1809+ (unsigned long )handle_tlbs + sizeof (handle_tlbs ));
1810+ flush_icache_range ((unsigned long )handle_tlbm ,
1811+ (unsigned long )handle_tlbm + sizeof (handle_tlbm ));
1812+ }
0 commit comments