Skip to content

Commit 1c93edf

Browse files
committed
s390/entry: Use lay instead of aghik
Use the lay instruction instead of aghik. aghik is only available since z196, therefore compiling the kernel for z10 results in this error: arch/s390/kernel/entry.S: Assembler messages: arch/s390/kernel/entry.S:165: Error: Unrecognized opcode: `aghik' Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202511261518.nBbQN5h7-lkp@intel.com/ Fixes: f5730d4 ("s390: Add stackprotector support") Reviewed-by: Jan Polensky <japo@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
1 parent 509c349 commit 1c93edf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/s390/kernel/entry.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ SYM_FUNC_START(__switch_to_asm)
162162
stg %r3,__LC_CURRENT(%r13) # store task struct of next
163163
stg %r15,__LC_KERNEL_STACK(%r13) # store end of kernel stack
164164
lg %r15,__THREAD_ksp(%r1,%r3) # load kernel stack of next
165-
aghik %r4,%r3,__TASK_pid
165+
lay %r4,__TASK_pid(%r3)
166166
mvc __LC_CURRENT_PID(4,%r13),0(%r4) # store pid of next
167167
ALTERNATIVE "nop", "lpp _LPP_OFFSET(%r13)", ALT_FACILITY(40)
168168
#ifdef CONFIG_STACKPROTECTOR

0 commit comments

Comments
 (0)