]> git.baikalelectronics.ru Git - kernel.git/commit
s390/entry: workaround llvm's IAS limitations
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 11 May 2022 12:05:27 +0000 (14:05 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 17 May 2022 13:16:28 +0000 (15:16 +0200)
commitd4b73638152532c3daba39feeb99c5595731dea6
treeeb909d4d57e104a9f867f395156ee60b453386ce
parenta8c265797f7d9c534411a9fe2a137f73852982f5
s390/entry: workaround llvm's IAS limitations

llvm's integrated assembler cannot handle immediate values which are
calculated with two local labels:

<instantiation>:3:13: error: invalid operand for instruction
 clgfi %r14,.Lsie_done - .Lsie_gmap

Workaround this by adding clang specific code which reads the specific
value from memory. Since this code is within the hot paths of the kernel
and adds an additional memory reference, keep the original code, and add
ifdef'ed code.

Acked-by: Alexander Gordeev <agordeev@linux.ibm.com>
Link: https://lore.kernel.org/r/20220511120532.2228616-5-hca@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/entry.S