Commit cbdbe07f authored by Franck Bui-Huu's avatar Franck Bui-Huu Committed by Ralf Baechle

[MIPS] tlbex.c: use __cacheline_aligned instead of __tlb_handler_align

Signed-off-by: default avatarFranck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent f49b94d8
...@@ -1391,18 +1391,15 @@ static void __init build_r4000_tlb_refill_handler(void) ...@@ -1391,18 +1391,15 @@ static void __init build_r4000_tlb_refill_handler(void)
extern void tlb_do_page_fault_0(void); extern void tlb_do_page_fault_0(void);
extern void tlb_do_page_fault_1(void); extern void tlb_do_page_fault_1(void);
#define __tlb_handler_align \
__attribute__((__aligned__(1 << CONFIG_MIPS_L1_CACHE_SHIFT)))
/* /*
* 128 instructions for the fastpath handler is generous and should * 128 instructions for the fastpath handler is generous and should
* never be exceeded. * never be exceeded.
*/ */
#define FASTPATH_SIZE 128 #define FASTPATH_SIZE 128
u32 __tlb_handler_align handle_tlbl[FASTPATH_SIZE]; u32 handle_tlbl[FASTPATH_SIZE] __cacheline_aligned;
u32 __tlb_handler_align handle_tlbs[FASTPATH_SIZE]; u32 handle_tlbs[FASTPATH_SIZE] __cacheline_aligned;
u32 __tlb_handler_align handle_tlbm[FASTPATH_SIZE]; u32 handle_tlbm[FASTPATH_SIZE] __cacheline_aligned;
static void __init static void __init
iPTE_LW(u32 **p, struct label **l, unsigned int pte, unsigned int ptr) iPTE_LW(u32 **p, struct label **l, unsigned int pte, unsigned int ptr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment