|
@@ -1200,7 +1200,7 @@ void *set_except_vector(int n, void *addr)
|
|
|
if (n == 0 && cpu_has_divec) {
|
|
|
*(u32 *)(ebase + 0x200) = 0x08000000 |
|
|
|
(0x03ffffff & (handler >> 2));
|
|
|
- flush_icache_range(ebase + 0x200, ebase + 0x204);
|
|
|
+ local_flush_icache_range(ebase + 0x200, ebase + 0x204);
|
|
|
}
|
|
|
return (void *)old_handler;
|
|
|
}
|
|
@@ -1283,7 +1283,8 @@ static void *set_vi_srs_handler(int n, vi_handler_t addr, int srs)
|
|
|
*w = (*w & 0xffff0000) | (((u32)handler >> 16) & 0xffff);
|
|
|
w = (u32 *)(b + ori_offset);
|
|
|
*w = (*w & 0xffff0000) | ((u32)handler & 0xffff);
|
|
|
- flush_icache_range((unsigned long)b, (unsigned long)(b+handler_len));
|
|
|
+ local_flush_icache_range((unsigned long)b,
|
|
|
+ (unsigned long)(b+handler_len));
|
|
|
}
|
|
|
else {
|
|
|
/*
|
|
@@ -1295,7 +1296,8 @@ static void *set_vi_srs_handler(int n, vi_handler_t addr, int srs)
|
|
|
w = (u32 *)b;
|
|
|
*w++ = 0x08000000 | (((u32)handler >> 2) & 0x03fffff); /* j handler */
|
|
|
*w = 0;
|
|
|
- flush_icache_range((unsigned long)b, (unsigned long)(b+8));
|
|
|
+ local_flush_icache_range((unsigned long)b,
|
|
|
+ (unsigned long)(b+8));
|
|
|
}
|
|
|
|
|
|
return (void *)old_handler;
|
|
@@ -1515,7 +1517,7 @@ void __cpuinit per_cpu_trap_init(void)
|
|
|
void __init set_handler(unsigned long offset, void *addr, unsigned long size)
|
|
|
{
|
|
|
memcpy((void *)(ebase + offset), addr, size);
|
|
|
- flush_icache_range(ebase + offset, ebase + offset + size);
|
|
|
+ local_flush_icache_range(ebase + offset, ebase + offset + size);
|
|
|
}
|
|
|
|
|
|
static char panic_null_cerr[] __cpuinitdata =
|
|
@@ -1680,7 +1682,7 @@ void __init trap_init(void)
|
|
|
signal32_init();
|
|
|
#endif
|
|
|
|
|
|
- flush_icache_range(ebase, ebase + 0x400);
|
|
|
+ local_flush_icache_range(ebase, ebase + 0x400);
|
|
|
flush_tlb_handlers();
|
|
|
|
|
|
sort_extable(__start___dbe_table, __stop___dbe_table);
|