powerpc/mm: Convert virtual address to vpn
This patch convert different functions to take virtual page number instead of virtual address. Virtual page number is virtual address shifted right by VPN_SHIFT (12) bits. This enable us to have an address range of upto 76 bits. Reviewed-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:

committed by
Benjamin Herrenschmidt

parent
dcda287a9b
commit
5524a27d39
@@ -95,7 +95,7 @@ struct ppc64_tlb_batch {
|
||||
unsigned long index;
|
||||
struct mm_struct *mm;
|
||||
real_pte_t pte[PPC64_TLB_BATCH_NR];
|
||||
unsigned long vaddr[PPC64_TLB_BATCH_NR];
|
||||
unsigned long vpn[PPC64_TLB_BATCH_NR];
|
||||
unsigned int psize;
|
||||
int ssize;
|
||||
};
|
||||
@@ -127,7 +127,7 @@ static inline void arch_leave_lazy_mmu_mode(void)
|
||||
#define arch_flush_lazy_mmu_mode() do {} while (0)
|
||||
|
||||
|
||||
extern void flush_hash_page(unsigned long va, real_pte_t pte, int psize,
|
||||
extern void flush_hash_page(unsigned long vpn, real_pte_t pte, int psize,
|
||||
int ssize, int local);
|
||||
extern void flush_hash_range(unsigned long number, int local);
|
||||
|
||||
|
Reference in New Issue
Block a user