Fix alignment in UCQ headers (XCC)
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 27 Mar 2013 23:14:15 +0000 (16:14 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 27 Mar 2013 23:14:15 +0000 (16:14 -0700)
The char[] wasn't aligned nicely for the spinlock.

Reinstall your kernel headers and rebuild userspace/tests.

kern/include/ros/ucq.h

index 09e632d..85ea014 100644 (file)
@@ -34,7 +34,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