summaryrefslogtreecommitdiff
path: root/rts/StgRun.h
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2011-07-18 13:48:53 +0100
committerSimon Marlow <marlowsd@gmail.com>2011-07-18 15:37:28 +0100
commit81eddb4c58c6d4171a46c727574112e2083c4878 (patch)
tree02c796458e3e8ee2dd0dc13e8de6162624478c35 /rts/StgRun.h
parent6d8c5ae8de842b9461551b113b8a2b59b9736ba2 (diff)
downloadhaskell-81eddb4c58c6d4171a46c727574112e2083c4878.tar.gz
Fix Windows breakage (#5322). When I modified StgRun to use the pure
assembly version as part of the fix for #5250, we inadvertently lost the Windows magic for extending the stack. Win32 requires that the stack is extended a page at a time, otherwise you get a segfault. The C compiler knows how to do this, so we now call a C stub to ensure there's enough stack space at each invocation of the scheduler.
Diffstat (limited to 'rts/StgRun.h')
-rw-r--r--rts/StgRun.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/rts/StgRun.h b/rts/StgRun.h
index f277097df7..71b92e2d88 100644
--- a/rts/StgRun.h
+++ b/rts/StgRun.h
@@ -11,4 +11,8 @@
RTS_PRIVATE StgRegTable * StgRun (StgFunPtr f, StgRegTable *basereg);
+#if defined(mingw32_HOST_OS)
+StgWord8 *win32AllocStack(void);
+#endif
+
#endif /* STGRUN_H */