WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

Re: [XenPPC] [RFC] fix stupid grant table flags

To: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Subject: Re: [XenPPC] [RFC] fix stupid grant table flags
From: Hollis Blanchard <hollisb@xxxxxxxxxx>
Date: Thu, 22 Jun 2006 14:24:53 -0500
Cc: xen-ppc-devel <xen-ppc-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 22 Jun 2006 12:24:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <254C9D42-B242-4BAD-8AA6-43C140547BD6@xxxxxxxxxxxxxx>
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: IBM Linux Technology Center
References: <1150915751.26633.19.camel@xxxxxxxxxxxxxxxxxxxxx> <254C9D42-B242-4BAD-8AA6-43C140547BD6@xxxxxxxxxxxxxx>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, 2006-06-21 at 18:49 -0400, Jimi Xenidis wrote:
> 
>    static inline void  clear_entry_flag(unsigned long nr, volatile  
> uint16_t *addr) {
>        volatile unsigned long *laddr;
>        unsigned long lnr;
>    #ifdef SAFETY_DANCE
>        BUG_ON((ulong)addr % sizeof (ulong));
>    #endif
>        lnr = (BITS_PER_LONG - (sizeof (*addr) * 8)) + nr;
>        laddr = (volatile unsigned long *)addr;
>        clear_bit(lnr, laddr);
>    } 

Why all the "volatile" here? This function isn't dereferencing those
pointers, so it shouldn't matter?

-- 
Hollis Blanchard
IBM Linux Technology Center


_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel