]> 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 66e5af0c3e357dbcabec7fc5d754a2606ad05365..ffe762201a007319b89b194e845e71854ad6a759 100644 (file)
@@ -168,4 +168,15 @@ typedef struct MachineThrAct {
 
 } MachineThrAct, *MachineThrAct_t;
 
+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_ */