Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Unity-Technologies/bdwgc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Hoepfner <mario.hopfner@unity3d.com>2021-07-08 16:57:13 +0300
committerMario Hoepfner <mario.hopfner@unity3d.com>2021-07-08 16:57:13 +0300
commitef9684c6e5da7f7db44bdf4558c83fb852759545 (patch)
tree88f87daa76a6953e1a63a62c27e850fd0f5c8939
parent544ba4ddf7b66f0c9c2c4223940cff56ccba43b1 (diff)
fix qnx stack bottom for x64
-rw-r--r--os_dep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/os_dep.c b/os_dep.c
index 8b180a94..df57a043 100644
--- a/os_dep.c
+++ b/os_dep.c
@@ -1170,10 +1170,12 @@ GC_INNER size_t GC_page_size = 0;
#endif /* LINUX_STACKBOTTOM */
#ifdef QNX_STACKBOTTOM
+
STATIC ptr_t GC_qnx_main_stack_base(void)
{
- return (ptr_t)__builtin_frame_address(1);
+ return (ptr_t)__builtin_frame_address(0);
}
+
#endif /* QNX_STACKBOTTOM */
#ifdef FREEBSD_STACKBOTTOM