[sanitizer] Add GetMaxVirtualAddress() support for LoongArch
authorYouling Tang <tangyouling@loongson.cn>
Thu, 10 Nov 2022 05:32:24 +0000 (13:32 +0800)
committerWeining Lu <luweining@loongson.cn>
Thu, 10 Nov 2022 05:32:30 +0000 (13:32 +0800)
commiteae8d93dc26837c2aa5764b7761e4d475b154081
treeb5624eef43e9641c4a4f355638a192b657079c9b
parent8fda8901e29bf80bd91574f29b50868958195a4e
[sanitizer] Add GetMaxVirtualAddress() support for LoongArch

Add support for getting the maximum virtual address, LoongArch has multiple
address space layouts, the default maximum virtual address of the current
user space is 47 bits. (from TASK_SIZE in the kernel for loongarch64).

Reviewed By: SixWeining

Differential Revision: https://reviews.llvm.org/D137219
compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp