Commit ff4dc41e authored by Linus Torvalds's avatar Linus Torvalds

Don't allow memory "lines" argument in "xor_p5_mmx_5()".

Since we do push/pops, a stack-based memory argument would
do the wrong thing by using the wrong offsets.
parent 047c4ecd
...@@ -489,7 +489,7 @@ xor_p5_mmx_5(unsigned long bytes, unsigned long *p1, unsigned long *p2, ...@@ -489,7 +489,7 @@ xor_p5_mmx_5(unsigned long bytes, unsigned long *p1, unsigned long *p2,
" jnz 1b ;\n" " jnz 1b ;\n"
" popl %5\n" " popl %5\n"
" popl %4\n" " popl %4\n"
: "+g" (lines), : "+r" (lines),
"+r" (p1), "+r" (p2), "+r" (p3) "+r" (p1), "+r" (p2), "+r" (p3)
: "r" (p4), "r" (p5) : "r" (p4), "r" (p5)
: "memory"); : "memory");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment