]> 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, 10 Sep 2012 07:54:13 +0000 (09:54 +0200)
commit6ab4419702a69aecf274d821f93904f5083ee0a6
tree962ff24d27a91e1c41df7e112d7ffdb14e3d33a8
parentbf0b2e7dab02717159d8077323018595e7a7a280
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