X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FException.cmm;h=6815b791739a5fc1c3c5d1e364cd9ea22d3f68fd;hb=f9c199a1a2865bdb9e8fb318a48058d7e4bfaf64;hp=f3564e453fae316279acec5f56b41e430607ff44;hpb=82f8341d3d87d9127c968baa9c3376e3f26caa81;p=ghc-hetmet.git diff --git a/rts/Exception.cmm b/rts/Exception.cmm index f3564e4..6815b79 100644 --- a/rts/Exception.cmm +++ b/rts/Exception.cmm @@ -13,7 +13,9 @@ #include "Cmm.h" #include "RaiseAsync.h" +#ifdef __PIC__ import base_GHCziBase_True_closure; +#endif /* ----------------------------------------------------------------------------- Exception Primitives @@ -428,14 +430,15 @@ retry_pop_stack: // be per-thread. W_[rts_stop_on_exception] = 0; ("ptr" ioAction) = foreign "C" deRefStablePtr (W_[rts_breakpoint_io_action] "ptr") []; - Sp = Sp - WDS(6); - Sp(5) = exception; - Sp(4) = stg_raise_ret_info; + Sp = Sp - WDS(7); + Sp(6) = exception; + Sp(5) = stg_raise_ret_info; + Sp(4) = stg_noforceIO_info; // required for unregisterised Sp(3) = exception; // the AP_STACK Sp(2) = base_GHCziBase_True_closure; // dummy breakpoint info Sp(1) = base_GHCziBase_True_closure; // True <=> a breakpoint R1 = ioAction; - jump stg_ap_pppv_info; + jump RET_LBL(stg_ap_pppv); } }