From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Thibault Subject: [PATCH] minios: drop volatile qualifier from some status variables Date: Tue, 6 May 2008 16:33:02 +0100 Message-ID: <20080506153302.GM4430@implementation.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org minios: drop volatile qualifier from some status variables since we already use memory barriers as approriate to prevent concurrent access with event handlers. Signed-off-by: Samuel Thibault diff -r 66fdf958c6fc -r 20945f11bf10 extras/mini-os/include/lib.h --- a/extras/mini-os/include/lib.h Tue May 06 12:07:32 2008 +0100 +++ b/extras/mini-os/include/lib.h Tue May 06 15:40:02 2008 +0100 @@ -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);