s390/stack: set lowcore kernel stack pointer early
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 27 Mar 2023 09:37:23 +0000 (11:37 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 4 Apr 2023 16:34:55 +0000 (18:34 +0200)
Make sure the lowcore kernel stack pointer reflects the kernel stack of the
current task as early as possible, instead of having a NULL pointer there.

Reviewed-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/head64.S

index 82399b4..f67982f 100644 (file)
@@ -25,6 +25,7 @@ ENTRY(startup_continue)
        larl    %r14,init_task
        stg     %r14,__LC_CURRENT
        larl    %r15,init_thread_union+STACK_INIT_OFFSET
+       stg     %r15,__LC_KERNEL_STACK
        brasl   %r14,sclp_early_adjust_va       # allow sclp_early_printk
        brasl   %r14,startup_init               # s390 specific early init
        brasl   %r14,start_kernel               # common init code