freebsd-dev/lib/libthr/arch
Andrew Turner c7904405a8 Remove PAGE_SIZE from libthr
In libthr we use PAGE_SIZE when allocating memory with mmap and to check
various structs will fit into a single page so we can use this allocator
for them.

Ask the kernel for the page size on init for use by the page allcator
and add a new machine dependent macro to hold the smallest page size
the architecture supports to check the structure is small enough.

This allows us to use the same libthr on arm64 with either 4k or 16k
pages.

Reviewed by:	kib, markj, imp
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34984
2022-05-03 11:04:41 +01:00
..
aarch64 Remove PAGE_SIZE from libthr 2022-05-03 11:04:41 +01:00
amd64 Remove PAGE_SIZE from libthr 2022-05-03 11:04:41 +01:00
arm/include Remove PAGE_SIZE from libthr 2022-05-03 11:04:41 +01:00
i386 Remove PAGE_SIZE from libthr 2022-05-03 11:04:41 +01:00
powerpc Remove PAGE_SIZE from libthr 2022-05-03 11:04:41 +01:00
riscv Remove PAGE_SIZE from libthr 2022-05-03 11:04:41 +01:00