hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/powerpc/include/asm/book3s/pgtable.h
....@@ -26,5 +26,16 @@
2626 unsigned long size, pgprot_t vma_prot);
2727 #define __HAVE_PHYS_MEM_ACCESS_PROT
2828
29
+/*
30
+ * This gets called at the end of handling a page fault, when
31
+ * the kernel has put a new PTE into the page table for the process.
32
+ * We use it to ensure coherency between the i-cache and d-cache
33
+ * for the page which has just been mapped in.
34
+ * On machines which use an MMU hash table, we use this to put a
35
+ * corresponding HPTE into the hash table ahead of time, instead of
36
+ * waiting for the inevitable extra hash-table miss exception.
37
+ */
38
+void update_mmu_cache(struct vm_area_struct *vma, unsigned long address, pte_t *ptep);
39
+
2940 #endif /* __ASSEMBLY__ */
3041 #endif