summaryrefslogtreecommitdiffstats
path: root/boehm-gc/MacOS.c
diff options
context:
space:
mode:
Diffstat (limited to 'boehm-gc/MacOS.c')
-rw-r--r--boehm-gc/MacOS.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/boehm-gc/MacOS.c b/boehm-gc/MacOS.c
index 420ea500e3e..cc12cd15d98 100644
--- a/boehm-gc/MacOS.c
+++ b/boehm-gc/MacOS.c
@@ -135,3 +135,20 @@ void GC_MacFreeTemporaryMemory()
# endif
}
}
+
+#if __option(far_data)
+
+ void* GC_MacGetDataEnd()
+ {
+ CodeZeroHandle code0 = (CodeZeroHandle)GetResource('CODE', 0);
+ if (code0) {
+ long aboveA5Size = (**code0).aboveA5;
+ ReleaseResource((Handle)code0);
+ return (LMGetCurrentA5() + aboveA5Size);
+ }
+ fprintf(stderr, "Couldn't load the jump table.");
+ exit(-1);
+ return 0;
+ }
+
+#endif /* __option(far_data) */
OpenPOWER on IntegriCloud