]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit87fda3185a7cb44e048ec93f41bd18a777ea6e30
tree3cff9d30519f530838e1ee5a2452908d4b508b62
parentb99b9c1682882c04c44593cc75618b5a40aa3457
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