: c-r4k.c 6/7 simplify flush_cache_page
PATCH 1/1 : c-r4k.c 6/7 simplify flush_cache_page
Hi
create r4k_blast_page{indexed} functions. That allows to remove the r4600 variant of the r4k_flush_page_cache. Once there, fix the bug we were testing _PAGE_VALID, instead of _PAGE_PRESENT.
Once there, also define a nice inline to test for _PAGE_VALID.
Later, Juan.
build/arch/mips/mm/c-r4k.c | 122 +++++++++++++++------------------------ build/include/asm-mips/pgtable.h | 1 2 files changed, 48 insertions(+), 75 deletions(-)
build/include/asm-mips/pgtable.h renamed from build/include/asm-mips/pgtable.h~c-r4k_flush_cache_page +1 -0
@@ -220,6 +220,7 @@ static inline void pmd_set(pmd_t * pmdp,static inline int pte_none (pte_t pte) {return !(pte_val (pte) & ~_PAGE_GLOBAL); }static inline int pte_present (pte_t pte) {return pte_val (pte) & _PAGE_PRESENT; } +static inline int pte_valid (pte_t pte) {return pte_val (pte) & _PAGE_VALID; }/* Certain architectures need to do special things when pte's * within a page table are directly modified. Thus, the following
build/arch/mips/mm/c-r4k.c renamed from build/arch/mips/mm/c-r4k.c~c-r4k_flush_cache_page +47 -75
152 lines not on this page · raw message
_
Signature · 2 lines
In theory, practice and theory are the same, but in practice they are different -- Larry McVoy