Loading...
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 *
9 */
10
11#include <linux/init.h>
12#include <linux/linkage.h>
13#include <asm/lowcore.h>
14#include <asm/asm-offsets.h>
15#include <asm/thread_info.h>
16#include <asm/page.h>
17#include <asm/ptrace.h>
18
19__HEAD
20SYM_CODE_START(startup_continue)
21 larl %r1,tod_clock_base
22 GET_LC %r2
23 mvc 0(16,%r1),__LC_BOOT_CLOCK(%r2)
24#
25# Setup stack
26#
27 larl %r14,init_task
28 stg %r14,__LC_CURRENT(%r2)
29 larl %r15,init_thread_union+STACK_INIT_OFFSET
30 stg %r15,__LC_KERNEL_STACK(%r2)
31 brasl %r14,sclp_early_adjust_va # allow sclp_early_printk
32 brasl %r14,startup_init # s390 specific early init
33 brasl %r14,start_kernel # common init code
34#
35# We returned from start_kernel ?!? PANIK
36#
37 basr %r13,0
38 lpswe dw_psw-.(%r13) # load disabled wait psw
39SYM_CODE_END(startup_continue)
40
41 .balign 16
42SYM_DATA_LOCAL(dw_psw, .quad 0x0002000180000000,0x0000000000000000)
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 */
11
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>
18
19__HEAD
20ENTRY(startup_continue)
21 tm __LC_STFLE_FAC_LIST+5,0x80 # LPP available ?
22 jz 0f
23 xc __LC_LPP+1(7,0),__LC_LPP+1 # clear lpp and current_pid
24 mvi __LC_LPP,0x80 # and set LPP_MAGIC
25 .insn s,0xb2800000,__LC_LPP # load program parameter
260: larl %r1,tod_clock_base
27 mvc 0(16,%r1),__LC_BOOT_CLOCK
28 larl %r13,.LPG1 # get base
29#
30# Setup stack
31#
32 larl %r14,init_task
33 stg %r14,__LC_CURRENT
34 larl %r15,init_thread_union+THREAD_SIZE-STACK_FRAME_OVERHEAD-__PT_SIZE
35#ifdef CONFIG_KASAN
36 brasl %r14,kasan_early_init
37#endif
38 brasl %r14,startup_init # s390 specific early init
39 brasl %r14,start_kernel # common init code
40#
41# We returned from start_kernel ?!? PANIK
42#
43 basr %r13,0
44 lpswe .Ldw-.(%r13) # load disabled wait psw
45
46 .align 16
47.LPG1:
48.Ldw: .quad 0x0002000180000000,0x0000000000000000