]> 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, 3 Sep 2012 11:40:14 +0000 (13:40 +0200)
commiteae25f8704efddf7714d058f6522ca9debe488c2
treefee957e69e3a2dbf639d6a1836e724c5ee48df01
parentb033de907b14401f5454975f4088f555c7a49913
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