rmm merge requestshttps://gitlab.redox-os.org/redox-os/rmm/-/merge_requests2023-07-06T23:57:38Zhttps://gitlab.redox-os.org/redox-os/rmm/-/merge_requests/7aarch64: fix Arch::virt_is_valid2023-07-06T23:57:38ZPavel Skripkinaarch64: fix Arch::virt_is_validCurrently Arch::virt_is_valid is empty stub that returns true for every virtual address for aarch64.
armv8 has a notion of valid virtual addresses, which is controlled by TCR_EL1::T1SZ and TCR_EL1::T0SZ for kernel space and user space re...Currently Arch::virt_is_valid is empty stub that returns true for every virtual address for aarch64.
armv8 has a notion of valid virtual addresses, which is controlled by TCR_EL1::T1SZ and TCR_EL1::T0SZ for kernel space and user space respectively.
Use TCR_EL1::T1SZ register to determine if virtual address is valid or not
PS: seems like T1SZ is actually hard-coded and always has value of 48. Should we rely on that or better to create a function which will always work?
Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>