pte_update_phys(): update physical address of a PTE
This commit is contained in:
@ -204,6 +204,11 @@ static inline int pte_is_fileoff(pte_t *ptep, size_t pgsize)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline void pte_update_phys(pte_t *ptep, unsigned long phys)
|
||||||
|
{
|
||||||
|
*ptep = (*ptep & ~PT_PHYSMASK) | (phys & PT_PHYSMASK);
|
||||||
|
}
|
||||||
|
|
||||||
static inline uintptr_t pte_get_phys(pte_t *ptep)
|
static inline uintptr_t pte_get_phys(pte_t *ptep)
|
||||||
{
|
{
|
||||||
return (*ptep & PT_PHYSMASK);
|
return (*ptep & PT_PHYSMASK);
|
||||||
|
|||||||
Reference in New Issue
Block a user