[PATCH v6 14/23] powerpc: Add <bits/pagesize.h>
Florian Weimer
fweimer@redhat.com
Tue May 20 09:23:48 GMT 2025
According to arch/powerpc/Kconfig in the Linux kernel sources,
PowerPC supports page sizes up to 256 KiB. However, in practice,
only page sizes up to 64 KiB are used, especially on 64-bit targets.
If 256 KiB page support is needed, it is probably best to add a
configure check for linker LOAD segment alignment and generate a
<bits/pagesize.h> file that has 256 KiB as the maximum page size.
Regular toolchain defaults only support 64 KiB as the maximum
page size.
Reviewed-by: Peter Bergner <bergner@linux.ibm.com>
---
sysdeps/powerpc/bits/pagesize.h | 2 ++
1 file changed, 2 insertions(+)
create mode 100644 sysdeps/powerpc/bits/pagesize.h
diff --git a/sysdeps/powerpc/bits/pagesize.h b/sysdeps/powerpc/bits/pagesize.h
new file mode 100644
index 0000000000..cd688d3fb0
--- /dev/null
+++ b/sysdeps/powerpc/bits/pagesize.h
@@ -0,0 +1,2 @@
+#define __GLIBC_PAGE_SHIFT_MIN 12
+#define __GLIBC_PAGE_SHIFT_MAX 16
--
2.49.0
More information about the Libc-alpha
mailing list