]> git.baikalelectronics.ru Git - kernel.git/commit
s390: fine-tune stack switch helper
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 10 Apr 2019 13:48:43 +0000 (15:48 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 11 Apr 2019 11:36:45 +0000 (13:36 +0200)
commit350a297d03b68d8e12af2fc7b0ffb4d44319045c
tree646db629e908e27a0e133d612733cd643503a9f2
parent7cd0ff84e123fcdeef69c7403338c810f8076b7b
s390: fine-tune stack switch helper

The CALL_ON_STACK helper currently does not work with clang and for
calls without arguments. It does not initialize r2 although the constraint
is "+&d". Rework the CALL_FMT_x and the CALL_ON_STACK macros to work
with clang and produce optimal code in all cases.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/processor.h