webkit2gtk3/SOURCES/aarch64-page-size.patch

17 lines
867 B
Diff
Raw Normal View History

2021-07-16 04:22:20 +00:00
diff --git a/Source/WTF/wtf/PageBlock.h b/Source/WTF/wtf/PageBlock.h
2022-01-27 05:06:50 +00:00
index 8ff8443d0e25..f37666d35bf2 100644
2021-07-16 04:22:20 +00:00
--- a/Source/WTF/wtf/PageBlock.h
+++ b/Source/WTF/wtf/PageBlock.h
2022-01-27 05:06:50 +00:00
@@ -46,9 +46,9 @@ namespace WTF {
2021-07-16 04:22:20 +00:00
// Use 64 KiB for any unknown CPUs to be conservative.
2022-01-27 05:06:50 +00:00
#if OS(DARWIN) || PLATFORM(PLAYSTATION) || CPU(MIPS) || CPU(MIPS64)
2021-07-16 04:22:20 +00:00
constexpr size_t CeilingOnPageSize = 16 * KB;
2022-01-27 05:06:50 +00:00
-#elif CPU(PPC) || CPU(PPC64) || CPU(PPC64LE) || CPU(UNKNOWN)
+#elif CPU(PPC) || CPU(PPC64) || CPU(PPC64LE) || CPU(UNKNOWN) || CPU(ARM64)
2021-07-16 04:22:20 +00:00
constexpr size_t CeilingOnPageSize = 64 * KB;
2022-01-27 05:06:50 +00:00
-#elif OS(WINDOWS) || CPU(X86) || CPU(X86_64) || CPU(ARM) || CPU(ARM64) || CPU(RISCV64)
+#elif OS(WINDOWS) || CPU(X86) || CPU(X86_64) || CPU(ARM) || CPU(RISCV64)
2021-07-16 04:22:20 +00:00
constexpr size_t CeilingOnPageSize = 4 * KB;
#else
#error Must set CeilingOnPageSize in PageBlock.h when adding a new CPU architecture!