s390: rework __switch_to() to allow larger task_struct offsets
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 16 Nov 2017 13:54:04 +0000 (14:54 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 20 Nov 2017 07:51:01 +0000 (08:51 +0100)
commit3241d3eb7d9bb7a134bedf49db196cf98b58834d
tree3cff9d30519f530838e1ee5a2452908d4b508b62
parent38389ec84e835fa31a59b7dabb18343106a6d0d5
s390: rework __switch_to() to allow larger task_struct offsets

If GCC_PLUGIN_RANDSTRUCT is enabled the members of task_struct will be
shuffled around. The offsets of the "pid" and "stack" members within
task_struct may not necessarily fit into 12 bits anymore, which causes
compile errors within __switch_to, since instructions are used, which
only have a 12 bit displacement field.

Therefore rework __switch_to, to allow for larger offsets.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/entry.S