]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Mon, 17 Sep 2012 09:30:08 +0000 (11:30 +0200)
commit2247e577e78f9f61b487fd038fdad7ce956e9745
tree1c8b3c6e14b0ff1d6bc7d9e7b359ea07fff47fc7
parentca42d9f5836d32a8146c9641ccac719a53a4860b
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