From: James S. <jsi...@us...> - 2001-10-11 23:05:11
|
Update of /cvsroot/linux-mips/linux/arch/mips64/mm In directory usw-pr-cvs1:/tmp/cvs-serv25423 Modified Files: andes.c Log Message: flush_tlb changes. Index: andes.c =================================================================== RCS file: /cvsroot/linux-mips/linux/arch/mips64/mm/andes.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- andes.c 2001/10/05 16:35:35 1.3 +++ andes.c 2001/10/11 23:05:09 1.4 @@ -132,8 +132,7 @@ #define NTLB_ENTRIES 64 #define NTLB_ENTRIES_HALF 32 -static inline void -andes_flush_tlb_all(void) +void local_flush_tlb_all(void) { unsigned long flags; unsigned long old_ctx; @@ -162,7 +161,7 @@ __restore_flags(flags); } -static void andes_flush_tlb_mm(struct mm_struct *mm) +void local_flush_tlb_mm(struct mm_struct *mm) { if (CPU_CONTEXT(smp_processor_id(), mm) != 0) { unsigned long flags; @@ -178,9 +177,8 @@ } } -static void -andes_flush_tlb_range(struct mm_struct *mm, unsigned long start, - unsigned long end) +void local_flush_tlb_range(struct mm_struct *mm, unsigned long start, + unsigned long end) { if (CPU_CONTEXT(smp_processor_id(), mm) != 0) { unsigned long flags; @@ -225,8 +223,7 @@ } } -static void -andes_flush_tlb_page(struct vm_area_struct *vma, unsigned long page) +void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long page) { if (CPU_CONTEXT(smp_processor_id(), vma->vm_mm) != 0) { unsigned long flags; @@ -350,11 +347,6 @@ _flush_cache_l2 = andes_flush_cache_l2; _flush_cache_sigtramp = andes_flush_cache_sigtramp; - _flush_tlb_all = andes_flush_tlb_all; - _flush_tlb_mm = andes_flush_tlb_mm; - _flush_tlb_range = andes_flush_tlb_range; - _flush_tlb_page = andes_flush_tlb_page; - switch (sc_lsize()) { case 64: scache_lsz64 = 1; @@ -383,7 +375,7 @@ write_32bit_cp0_register(CP0_PAGEMASK, PM_4K); /* From this point on the ARC firmware is dead. */ - _flush_tlb_all(); + local_flush_tlb_all(); /* Did I tell you that ARC SUCKS? */ } |