]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/i386/thread_act.h
xnu-344.23.tar.gz
[apple/xnu.git] / osfmk / i386 / thread_act.h
index 2ce6893288d1a583adad5f18e4c367276a82d38b..ffe762201a007319b89b194e845e71854ad6a759 100644 (file)
@@ -172,4 +172,11 @@ extern void *act_thread_csave(void);
 extern void act_thread_catt(void *ctx);
 extern void act_thread_cfree(void *ctx);
 
+#define current_act_fast()     (current_thread()->top_act)
+#define current_act_slow()     ((current_thread()) ?                   \
+                                                               current_act_fast() :            \
+                                                               THR_ACT_NULL)
+
+#define current_act()  current_act_slow()    /* JMM - til we find the culprit */
+
 #endif /* _I386_THREAD_ACT_H_ */