aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorGavin Shan <[email protected]>2020-04-28 09:46:55 +1000
committerWill Deacon <[email protected]>2020-04-28 14:11:12 +0100
commit68ecabd0e680a4ceaf950ae189a55d4730d10c64 (patch)
tree76d0e0d489baf4d29b6c06926edd4e6decee662a /scripts/gdb/linux/modules.py
parent2eaf63ba84dc2fa4cecd717e917ea882be08069b (diff)
arm64/mm: Use phys_to_page() to access pgtable memory
The macros {pgd, pud, pmd}_page() retrieves the page struct of the corresponding page frame, which is reserved as page table. There is already a macro (phys_to_page), defined in memory.h as below, to convert the physical address to the page struct. Also, the header file (memory.h) has been included by pgtable.h. #define phys_to_page(phys) (pfn_to_page(__phys_to_pfn(phys))) So it's reasonable to use the macro in pgtable.h. Signed-off-by: Gavin Shan <[email protected]> Reviewed-by: Mark Rutland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions