Commit fa6dfa3b authored by Alberto Garcia's avatar Alberto Garcia
Browse files

Increase the page size in MIPS

parent 8e1eb473
......@@ -21,6 +21,9 @@ webkit2gtk (2.30.4-2) UNRELEASED; urgency=medium
+ libgtk-3-dev from 3.10.0 to 3.22.0
+ libcairo2-dev from 1.10.2 to 1.14.0
+ libsoup2.4-dev from 2.42.0 to 2.54.0.
* debian/patches/fix-mips-page-size.patch:
+ Increase the page size from 4KB to 16KB on MIPS, this fixes a crash
with Loongson CPUs that don't support 4KB pages (Closes: #977779).
* debian/copyright:
+ Update copyright years.
......
From: Alberto Garcia <berto@igalia.com>
Subject: Increase the page size so it works fine in Loongson
Bug: https://bugs.webkit.org/show_bug.cgi?id=221198
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977779
Index: webkitgtk/Source/WTF/wtf/PageBlock.h
===================================================================
--- webkitgtk.orig/Source/WTF/wtf/PageBlock.h
+++ webkitgtk/Source/WTF/wtf/PageBlock.h
@@ -51,7 +51,9 @@ namespace WTF {
constexpr size_t CeilingOnPageSize = 16 * KB;
#elif USE(64KB_PAGE_BLOCK) || CPU(PPC) || CPU(PPC64) || CPU(PPC64LE) || CPU(UNKNOWN)
constexpr size_t CeilingOnPageSize = 64 * KB;
-#elif OS(WINDOWS) || CPU(MIPS) || CPU(MIPS64) || CPU(X86) || CPU(X86_64) || CPU(ARM) || CPU(ARM64)
+#elif CPU(MIPS) || CPU(MIPS64)
+constexpr size_t CeilingOnPageSize = 16 * KB;
+#elif OS(WINDOWS) || CPU(X86) || CPU(X86_64) || CPU(ARM) || CPU(ARM64)
constexpr size_t CeilingOnPageSize = 4 * KB;
#else
#error Must set CeilingOnPageSize in PageBlock.h when adding a new CPU architecture!
......@@ -5,3 +5,4 @@ fix-ftbfs-x32.patch
prefer-pthread.patch
dont-detect-sse2.patch
reduce-memory-overheads.patch
fix-mips-page-size.patch
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment