Skip to content

Implement arch_page_phys_get() for ARM64 #34989

@dcpleung

Description

@dcpleung

Is your enhancement proposal related to a problem? Please describe.
k_mem_unmap() needs to find out the mapped physical address (=> page frame) from a virtual address. It needs to call arch_page_phys_get(). Currently, for architecture that does not implement this function, a brute force method to walk through all the page frames is used to find the mapping. It would be great for ARM64 to implement its own arch_page_phys_get() as the arch code is probably able to find the mapping faster.

Describe the solution you'd like
arch_page_phys_get() is implemented in ARM64.

Describe alternatives you've considered
Currently, a brute force method is in place. It is simply slow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions