X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=rts%2FPrimOps.cmm;h=e754eb05bd4df66089c95ddd0efc465f4fd2870a;hp=f2ce41551ad29ada1d30e518dc50bbdad0cc432e;hb=8f52645bd99ee3e636a34826c0cbfc5939920da1;hpb=09bb1eb4d782fd67c36145fd230bcb201d1548ba diff --git a/rts/PrimOps.cmm b/rts/PrimOps.cmm index f2ce415..e754eb0 100644 --- a/rts/PrimOps.cmm +++ b/rts/PrimOps.cmm @@ -970,7 +970,7 @@ forkzh_fast foreign "C" scheduleThread(MyCapability() "ptr", threadid "ptr") []; // switch at the earliest opportunity - CInt[context_switch] = 1 :: CInt; + Capability_context_switch(MyCapability()) = 1 :: CInt; RET_P(threadid); } @@ -999,7 +999,7 @@ forkOnzh_fast foreign "C" scheduleThreadOn(MyCapability() "ptr", cpu, threadid "ptr") []; // switch at the earliest opportunity - CInt[context_switch] = 1 :: CInt; + Capability_context_switch(MyCapability()) = 1 :: CInt; RET_P(threadid); }