On 6/29/22 9:49 PM, Jens Axboe wrote:
On 6/28/22 6:27 PM, Ammar Faizi wrote:
From: Ammar Faizi <ammarfaizi2@xxxxxxxxxxx>
This is a preparation patch to add aarch64 nolibc support.
aarch64 supports three values of page size: 4K, 16K, and 64K which are
selected at kernel compilation time. Therefore, we can't hard code the
page size for this arch. Utilize open(), read() and close() syscall to
find the page size from /proc/self/auxv. For more details about the
auxv data structure, check the link below.
We should probably cache this value if already read? At least I don't
think we have systems where the page size would differ between
applications.
Good idea, will use a static variable to cache it in v2 then...
--
Ammar Faizi