put the @N suffix on stdcall foreign calls in .cmm code
[ghc-hetmet.git] / rts / HeapStackCheck.cmm
index a4fb5c0..11af7c7 100644 (file)
@@ -13,6 +13,8 @@
 #include "Cmm.h"
 
 #ifdef __PIC__
+import EnterCriticalSection
+import LeaveCriticalSection
 import pthread_mutex_unlock;
 #endif
 
@@ -873,7 +875,7 @@ stg_block_blackhole_finally
     // The last thing we do is release sched_lock, which is
     // preventing other threads from accessing blackhole_queue and
     // picking up this thread before we are finished with it.
-    foreign "C" RELEASE_LOCK(sched_mutex "ptr");
+    RELEASE_LOCK(sched_mutex "ptr");
 #endif
     jump StgReturn;
 }