8 bits was too small - we could have 256 writes that could be
interpreted as "nothing changed."

Reinstall your kernel headers.

Signed-off-by: Barret Rhoden <[email protected]>
---
 kern/include/ros/atomic.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kern/include/ros/atomic.h b/kern/include/ros/atomic.h
index 1bf4c69387f0..943c242a5052 100644
--- a/kern/include/ros/atomic.h
+++ b/kern/include/ros/atomic.h
@@ -17,7 +17,7 @@ typedef void* atomic_t;
  * after.  If the value has changed, the reader needs to re-read.  If the value
  * is odd, a write is in progress or it is otherwise invalid/locked. */
 
-typedef uint8_t seq_ctr_t;
+typedef uint32_t seq_ctr_t;
 #define SEQCTR_INITIALIZER 0
 
 static inline bool seq_is_locked(seq_ctr_t seq_ctr);
-- 
2.8.0.rc3.226.g39d4020

-- 
You received this message because you are subscribed to the Google Groups 
"Akaros" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to