[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] Prevent incorrect optimization of read_crx()



On 11/9/07 07:52, "Jan Beulich" <jbeulich@xxxxxxxxxx> wrote:

> Wouldn't you need to put __volatile__ in write_crX(), too?

Actually it is surprising that the compiler hasn't been optimising away our
write_cr0() entirely. Perhaps it special cases asm blocks with no outputs.
Adding the volatile keyword makes a lot of sense anyway.

 -- Keir




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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.