From: Simon Kagstrom Date: Thu, 20 Aug 2009 07:19:53 +0000 (+0200) Subject: [ARM] Orion NAND: Make asm volatile avoid GCC pushing ldrd out of the loop X-Git-Tag: v2.6.31-rc8~40^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94da210af4978b94cb70318bd1b282a73c50b175;p=pandora-kernel.git [ARM] Orion NAND: Make asm volatile avoid GCC pushing ldrd out of the loop GCC 4.3.3 and 4.4.1 happily moves the dword load instruction out of the loop in orion_nand_read_buf. This patch makes the instruction volatile to avoid the issue. I've discussed this at gcc-help, refer to the thread at http://gcc.gnu.org/ml/gcc-help/2009-08/msg00187.html The early clobber is added to avoid the destination registers and the source register overlapping. Signed-off-by: Simon Kagstrom Signed-off-by: Nicolas Pitre --- Reading git-diff-tree failed