28 lines
978 B
Diff
28 lines
978 B
Diff
From: John David Anglin <dave.anglin@bell.net>
|
|
Date: Mon, 20 Nov 2023 08:25:53 +0000
|
|
Subject: fix stack base detection on hppa
|
|
|
|
Forwarded: not-yet
|
|
Last-Update: 2018-12-18
|
|
---
|
|
src/3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cpp | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cpp b/src/3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cpp
|
|
index e8f78ee..d965834 100644
|
|
--- a/src/3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cpp
|
|
+++ b/src/3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cpp
|
|
@@ -672,7 +672,12 @@ static inline void* currentThreadStackBase()
|
|
pthread_attr_destroy(&sattr);
|
|
stackThread = thread;
|
|
}
|
|
+#if defined(__hppa__)
|
|
+ // Stack grows up.
|
|
+ return static_cast<char*>(stackBase);
|
|
+#else
|
|
return static_cast<char*>(stackBase) + stackSize;
|
|
+#endif
|
|
#else
|
|
#error Need a way to get the stack base on this platform
|
|
#endif
|