]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Another RAID-5 XOR assembly fix
authorAndi Kleen <ak@muc.de>
Thu, 20 Jun 2002 07:25:01 +0000 (00:25 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 20 Jun 2002 07:25:01 +0000 (00:25 -0700)
The last changes did trigger another latent bug in the inline assembly.
akpm noticed it because he compiles his kernels with frame pointers.

include/asm-i386/xor.h

index 888ac968bd274092efbecb6135a447856115ab36..854f76a2b9e653e3042fcccf4279321196b2de95 100644 (file)
@@ -550,7 +550,7 @@ static struct xor_block_template xor_block_p5_mmx = {
                "movups %%xmm1,0x10(%1) ;\n\t"  \
                "movups %%xmm2,0x20(%1) ;\n\t"  \
                "movups %%xmm3,0x30(%1) ;\n\t"  \
-               : "=r" (cr0)                    \
+               : "=&r" (cr0)                   \
                : "r" (xmm_save)                \
                : "memory")