diff options
author | Anshuman Khandual <[email protected]> | 2022-11-07 19:47:53 +0530 |
---|---|---|
committer | Will Deacon <[email protected]> | 2022-11-09 18:13:18 +0000 |
commit | a4ee28615c7a1e2925e1fcb4ba0fa1aeee633d78 (patch) | |
tree | 3c4e5db235c93b63d0eebd8f43a6bd3590e0cd06 /lib/mpi/mpi-sub-ui.c | |
parent | f0c4d9fc9cc9462659728d168387191387e903cc (diff) |
arm64/mm: Simplify and document pte_to_phys() for 52 bit addresses
pte_to_phys() assembly definition does multiple bits field transformations
to derive physical address, embedded inside a page table entry. Unlike its
C counter part i.e __pte_to_phys(), pte_to_phys() is not very apparent. It
simplifies these operations via a new macro PTE_ADDR_HIGH_SHIFT indicating
how far the pte encoded higher address bits need to be left shifted. While
here, this also updates __pte_to_phys() and __phys_to_pte_val().
Cc: Catalin Marinas <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Mark Brown <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: [email protected]
Cc: [email protected]
Reviewed-by: Ard Biesheuvel <[email protected]>
Suggested-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Anshuman Khandual <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions