]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
chmc: Mark %ver register inline asm with __volatile__
authorDavid S. Miller <davem@davemloft.net>
Mon, 13 Oct 2008 06:56:12 +0000 (23:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Oct 2008 06:56:12 +0000 (23:56 -0700)
commit615c9136b385d5225d3ece20aa30b28a90c438d6
treedb11f7e02eacac06f5fcb7378f2394a966880673
parent82960b8543cca5797a5e2841a9c43b8c5c669e65
chmc: Mark %ver register inline asm with __volatile__

Otherwise GCC can try to do the register read before the guarding test
on us3mc_platform() being true.

If that happens we can take an exception, because %ver register reads
are not allowed in privileged more on hypervisor platforms.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/chmc.c