summaryrefslogtreecommitdiff
path: root/user/qt5-qtwebkit/ppc-ucontext.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/qt5-qtwebkit/ppc-ucontext.patch')
-rw-r--r--user/qt5-qtwebkit/ppc-ucontext.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/user/qt5-qtwebkit/ppc-ucontext.patch b/user/qt5-qtwebkit/ppc-ucontext.patch
new file mode 100644
index 000000000..e1b9bdfda
--- /dev/null
+++ b/user/qt5-qtwebkit/ppc-ucontext.patch
@@ -0,0 +1,15 @@
+diff -ur a/Source/JavaScriptCore/heap/MachineStackMarker.cpp b/Source/JavaScriptCore/heap/MachineStackMarker.cpp
+--- a/Source/JavaScriptCore/heap/MachineStackMarker.cpp 2022-12-13 14:54:53.144583311 -0600
++++ b/Source/JavaScriptCore/heap/MachineStackMarker.cpp 2022-12-13 14:55:16.829078581 -0600
+@@ -86,11 +86,7 @@
+ }
+
+ ucontext_t* userContext = static_cast<ucontext_t*>(ucontext);
+-#if CPU(PPC)
+- thread->suspendedMachineContext = *userContext->uc_mcontext.uc_regs;
+-#else
+ thread->suspendedMachineContext = userContext->uc_mcontext;
+-#endif
+
+ // Allow suspend caller to see that this thread is suspended.
+ // sem_post is async-signal-safe function. It means that we can call this from a signal handler.