rework external irq system, introduce hierarchical irq
[lunaix-os.git] / lunaix-os / includes / lunaix / syscall_utils.h
index fcc7dc321c37d6016e80458b38c8171a2e745c1a..d29056d7c637920baa56b880fb574436b33cec30 100644 (file)
@@ -3,8 +3,10 @@
 
 #include <lunaix/process.h>
 #include <lunaix/syscall.h>
+#include <sys/syscall_utils.h>
 
-#define DO_STATUS(errno) SYSCALL_ESTATUS(__current->k_status = errno)
-#define DO_STATUS_OR_RETURN(errno) ({ errno < 0 ? DO_STATUS(errno) : errno; })
+#define DO_STATUS(errno)    SYSCALL_ESTATUS(syscall_result(errno))
+#define DO_STATUS_OR_RETURN(errno) \
+        ({ errno < 0 ? DO_STATUS(errno) : errno; })
 
 #endif /* __LUNAIX_SYSCALL_UTILS_H */