From: Kirill Korotaev Date: Wed, 17 Oct 2007 16:04:33 +0000 (+0200) Subject: x86: mark read_crX() asm code as volatile X-Git-Tag: v2.6.24-rc1~476^2~99 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1217a75ea102d4e69321f210fab60bc47b9a48e;p=pandora-kernel.git x86: mark read_crX() asm code as volatile 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(). The small app for x8664 below compiled with -O2 demonstrates this (i686 does the same thing): --- Reading git-diff-tree failed