s390/string: provide asm lib functions for memcpy and memcmp
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 14 Aug 2012 11:20:20 +0000 (13:20 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 26 Sep 2012 13:44:50 +0000 (15:44 +0200)
commit535c611ddd3eb076f96579131e30bc5dd02a3b1c
treef6e3fdb6c8870ab01e35e79a4f017c6f6a365fda
parent68d9884dbc4215b6693c108eb35a02bd78f7956e
s390/string: provide asm lib functions for memcpy and memcmp

Our memcpy and memcmp variants were implemented by calling the corresponding
gcc builtin variants.
However gcc is free to replace a call to __builtin_memcmp with a call to memcmp
which, when called, will result in an endless recursion within memcmp.
So let's provide asm variants and also fix the variants that are used for
uncompressing the kernel image.
In addition remove all other occurences of builtin function calls.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/boot/compressed/misc.c
arch/s390/include/asm/string.h
arch/s390/kernel/s390_ksyms.c
arch/s390/lib/Makefile
arch/s390/lib/mem32.S [new file with mode: 0644]
arch/s390/lib/mem64.S [new file with mode: 0644]
arch/s390/lib/string.c