Fix circular issues with event headers (XCC)
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 17 May 2016 14:59:49 +0000 (10:59 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 17 May 2016 14:59:49 +0000 (10:59 -0400)
commit970d6d7719d73abb89170d01ab9fb0f6340a54ba
tree66e7ade1299833d72c0531e5f90ef490b7c2f71f
parentdf786ca456cb0ba3464d28a833a9322143abb203
Fix circular issues with event headers (XCC)

The mailbox headers (e.g. ucq.h) needed parts of event.h, but later parts
of event.h needed the mailbox headers.  Previously we dealt with this by
being careful with where we #included.  Commit df786ca456cb ("Replace
 #include guards with #pragma once.") broke that for evbitmap.h.

The right fix is to split out the parts of the header that the mailboxes
need into it's own header.  This should help avoid future issues with other
mailboxes.  FWIW, I don't know if we could keep the old style (even if I
wanted to) with the #pragma once, which is probably why that one was left
as an ifndef.

Reinstall your kernel headers.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/ros/ceq.h
kern/include/ros/evbitmap.h
kern/include/ros/event.h
kern/include/ros/event_bits.h [new file with mode: 0644]
kern/include/ros/ucq.h