Remove EVENT_JUSTHANDLEIT (XCC)
[akaros.git] / kern / include / ros / ucq.h
index 09e632d..940b37e 100644 (file)
 #include <ros/common.h>
 #include <ros/atomic.h>
 #include <ros/arch/mmu.h>
-#include <arch/arch.h>                 /* both user and kernel have arch/arch.h */
+
+#ifdef ROS_KERNEL
+#include <arch/arch.h>
+#else
+#include <parlib/arch/arch.h>
+#endif
+
 /* #include <ros/event.h> included below */
 
 /* The main UCQ structure, contains indexes and start points (for the indexes),
@@ -34,7 +40,7 @@ struct ucq {
        atomic_t                                        cons_idx;               /* cons pg and slot nr */
        bool                                            ucq_ready;              /* ucq is ready to be used */
        /* Userspace lock for modifying the UCQ */
-       char                                            u_lock[2 * ARCH_CL_SIZE];       /* mcs_pdr_lock */
+       uint64_t                                        u_lock[2 * ARCH_CL_SIZE / 8];
 };
 
 /* Struct at the beginning of every page/buffer, tracking consumers and