Skip to contentSkip to conversation

minios: drop volatile qualifier from some status variables

PATCH New Samuel Thibault 1 participant 1 message May 6, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 minios: drop volatile qualifier from some status variables

minios: drop volatile qualifier from some status variables since we already use memory barriers as approriate to prevent concurrent access with event handlers.

extras/mini-os/include/lib.h +2 -2
diff -r 66fdf958c6fc -r 20945f11bf10 extras/mini-os/include/lib.h
@@ -162,7 +162,7 @@ extern struct file {
              * wakes select for this FD. */
             struct {
                 evtchn_port_t port;
-                volatile unsigned long pending;
+                unsigned long pending;
                 int bound;
             } ports[MAX_EVTCHN_PORTS];
 	} evtchn;
@@ -181,7 +181,7 @@ extern struct file {
             xenbus_event_queue events;
         } xenbus;
     };
-    volatile int read;	/* maybe available for read */
+    int read;	/* maybe available for read */
 } files[];
 
 int alloc_fd(enum fd_type type);