Commit a5c43a75 authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds

[PATCH] Fix memset on x86-64

The memset for C stepping K8 was broken. This broke mainly CONFIG_SLAB_DEBUG
because memset(...., 0, ...) still worked correctly.

Thanks to Manfred Spraul for giving me the right cue.
parent f73e9f0f
......@@ -113,7 +113,7 @@ memset_c:
/* expand byte value */
movzbl %sil,%esi
movabs $0x0101010101010101,%rax
mul %esi /* with rax, clobbers rdx */
mulq %rsi /* with rax, clobbers rdx */
rep
stosq
movl %r8d,%ecx
......
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