diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2014-08-01 18:07:03 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-08-01 18:07:03 -0400 |
commit | 475d5928b79bb78326a645863d46ff95c5e25e5a (patch) | |
tree | a260aed0d94bda824d7f2c5d74b2b1f8002634aa /arch/mips/mm/tlbex.c | |
parent | c6b7b9f290c0987194b966d5ea1383e10e1a01b1 (diff) | |
parent | 1062080a7d8dbe08cefce728341285e77930ef49 (diff) |
Merge branch '3.16-fixes' into mips-for-linux-next
Diffstat (limited to 'arch/mips/mm/tlbex.c')
-rw-r--r-- | arch/mips/mm/tlbex.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/mm/tlbex.c b/arch/mips/mm/tlbex.c index ccf8298e7ab2..a08dd53a1cc5 100644 --- a/arch/mips/mm/tlbex.c +++ b/arch/mips/mm/tlbex.c | |||
@@ -429,6 +429,7 @@ static void build_r3000_tlb_refill_handler(void) | |||
429 | (unsigned int)(p - tlb_handler)); | 429 | (unsigned int)(p - tlb_handler)); |
430 | 430 | ||
431 | memcpy((void *)ebase, tlb_handler, 0x80); | 431 | memcpy((void *)ebase, tlb_handler, 0x80); |
432 | local_flush_icache_range(ebase, ebase + 0x80); | ||
432 | 433 | ||
433 | dump_handler("r3000_tlb_refill", (u32 *)ebase, 32); | 434 | dump_handler("r3000_tlb_refill", (u32 *)ebase, 32); |
434 | } | 435 | } |
@@ -1299,6 +1300,7 @@ static void build_r4000_tlb_refill_handler(void) | |||
1299 | } | 1300 | } |
1300 | #ifdef CONFIG_MIPS_HUGE_TLB_SUPPORT | 1301 | #ifdef CONFIG_MIPS_HUGE_TLB_SUPPORT |
1301 | uasm_l_tlb_huge_update(&l, p); | 1302 | uasm_l_tlb_huge_update(&l, p); |
1303 | UASM_i_LW(&p, K0, 0, K1); | ||
1302 | build_huge_update_entries(&p, htlb_info.huge_pte, K1); | 1304 | build_huge_update_entries(&p, htlb_info.huge_pte, K1); |
1303 | build_huge_tlb_write_entry(&p, &l, &r, K0, tlb_random, | 1305 | build_huge_tlb_write_entry(&p, &l, &r, K0, tlb_random, |
1304 | htlb_info.restore_scratch); | 1306 | htlb_info.restore_scratch); |
@@ -1415,6 +1417,7 @@ static void build_r4000_tlb_refill_handler(void) | |||
1415 | final_len); | 1417 | final_len); |
1416 | 1418 | ||
1417 | memcpy((void *)ebase, final_handler, 0x100); | 1419 | memcpy((void *)ebase, final_handler, 0x100); |
1420 | local_flush_icache_range(ebase, ebase + 0x100); | ||
1418 | 1421 | ||
1419 | dump_handler("r4000_tlb_refill", (u32 *)ebase, 64); | 1422 | dump_handler("r4000_tlb_refill", (u32 *)ebase, 64); |
1420 | } | 1423 | } |