[project @ 2002-01-15 05:39:14 by sof]
[ghc-hetmet.git] / ghc / rts / Exception.hc
index 8cb24e9..817d6c2 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: Exception.hc,v 1.22 2001/11/22 14:25:12 simonmar Exp $
+ * $Id: Exception.hc,v 1.23 2001/12/05 17:35:15 sewardj Exp $
  *
  * (c) The GHC Team, 1998-2000
  *
@@ -212,6 +212,17 @@ FN_(killThreadzh_fast)
   FE_
 }
 
+
+FN_(myThreadIdzh_fast)
+{
+  /* no args. */
+  FB_
+  R1.p = (P_)CurrentTSO;
+  JMP_(ENTRY_CODE(Sp[0]));
+  FE_
+}
+
+
 /* -----------------------------------------------------------------------------
    Catch frames
    -------------------------------------------------------------------------- */