[PATCH v6 12/23] mips: Add <bits/pagesize.h>

Florian Weimer fweimer@redhat.com
Tue May 20 09:23:33 GMT 2025


According to arch/mips/Kconfig in the Linux sources, MIPS supports
4 KiB, 8 KiB, 16 KiB, 32 KiB, 64 KiB page sizes depending on
CPU/configuration.

The new header is Linux-specific, to reflect that MIPS has a
software-defined TLB, and that the page size can be configured by the
kernel within a wide range.

Reviewed-by: Maciej W. Rozycki <macro@redhat.com>
---
 sysdeps/unix/sysv/linux/mips/bits/pagesize.h | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 sysdeps/unix/sysv/linux/mips/bits/pagesize.h

diff --git a/sysdeps/unix/sysv/linux/mips/bits/pagesize.h b/sysdeps/unix/sysv/linux/mips/bits/pagesize.h
new file mode 100644
index 0000000000..cd688d3fb0
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/mips/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