]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/ast.h
xnu-1228.5.18.tar.gz
[apple/xnu.git] / osfmk / kern / ast.h
index 1ceaf3f9c0c21377f3fa60dd9e407912a3bf7868..93567aca73f6f496d1ee453a6ab6ce64dacf9c41 100644 (file)
@@ -113,6 +113,11 @@ typedef uint32_t           ast_t;
 
 #endif  /* MACHINE_AST */
 
+#define AST_CHUD_URGENT     0x800
+#define AST_CHUD            0x400
+
+#define AST_CHUD_ALL        (AST_CHUD_URGENT|AST_CHUD)
+
 /* Initialize module */
 extern void            ast_init(void);
 
@@ -177,11 +182,11 @@ MACRO_END
  *  be followed by ast_propagate().
  */
 #define thread_ast_set(act, reason)            \
-                                               (hw_atomic_or(&(act)->ast, (reason)))
+                                               ((void)hw_atomic_or(&(act)->ast, (reason)))
 #define thread_ast_clear(act, reason)  \
-                                               (hw_atomic_and(&(act)->ast, ~(reason)))
+                                               ((void)hw_atomic_and(&(act)->ast, ~(reason)))
 #define thread_ast_clear_all(act)              \
-                                               (hw_atomic_and(&(act)->ast, AST_NONE))
+                                               ((void)hw_atomic_and(&(act)->ast, AST_NONE))
 
 #ifdef MACH_BSD