[Devel] Re: [PATCH] mark read_crX() asm code as volatile
Arjan van de Ven
arjan at infradead.org
Tue Oct 2 08:28:56 PDT 2007
On Tue, 02 Oct 2007 18:08:32 +0400
Kirill Korotaev <dev at openvz.org> wrote:
> Some gcc versions (I checked at least 4.1.1 from RHEL5 & 4.1.2 from
> gentoo) can generate incorrect code with read_crX()/write_crX()
> functions mix up, due to cached results of read_crX().
>
I'm not so sure volatile is the right answer, as compared to giving the
asm more strict contraints....
asm volatile tends to mean something else than "the result has
changed"....
More information about the Devel
mailing list