Merge tag 'locking-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / arch / s390 / kernel / head64.S
blob0c253886da7892ae32b6e642ed69741b94b73625
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright IBM Corp. 1999, 2010
4  *
5  *   Author(s): Hartmut Penner <hp@de.ibm.com>
6  *              Martin Schwidefsky <schwidefsky@de.ibm.com>
7  *              Rob van der Heij <rvdhei@iae.nl>
8  *              Heiko Carstens <heiko.carstens@de.ibm.com>
9  *
10  */
12 #include <linux/init.h>
13 #include <linux/linkage.h>
14 #include <asm/asm-offsets.h>
15 #include <asm/thread_info.h>
16 #include <asm/page.h>
17 #include <asm/ptrace.h>
19 __HEAD
20 ENTRY(startup_continue)
21         larl    %r1,tod_clock_base
22         mvc     0(16,%r1),__LC_BOOT_CLOCK
23         larl    %r13,.LPG1              # get base
25 # Setup stack
27         larl    %r14,init_task
28         stg     %r14,__LC_CURRENT
29         larl    %r15,init_thread_union+THREAD_SIZE-STACK_FRAME_OVERHEAD-__PT_SIZE
30 #ifdef CONFIG_KASAN
31         brasl   %r14,kasan_early_init
32 #endif
33         brasl   %r14,startup_init               # s390 specific early init
34         brasl   %r14,start_kernel               # common init code
36 # We returned from start_kernel ?!? PANIK
38         basr    %r13,0
39         lpswe   .Ldw-.(%r13)            # load disabled wait psw
41         .align  16
42 .LPG1:
43 .Ldw:   .quad   0x0002000180000000,0x0000000000000000