1 /* SPDX-License-Identifier: GPL-2.0 */
3 * arch/s390/kernel/base.S
5 * Copyright IBM Corp. 2006, 2007
6 * Author(s): Heiko Carstens <heiko.carstens@de.ibm.com>
7 * Michael Holzheu <holzheu@de.ibm.com>
10 #include <linux/linkage.h>
11 #include <asm/asm-offsets.h>
12 #include <asm/nospec-insn.h>
13 #include <asm/ptrace.h>
19 ENTRY(s390_base_mcck_handler)
21 0: lg %r15,__LC_NODAT_STACK # load panic stack
22 aghi %r15,-STACK_FRAME_OVERHEAD
23 larl %r1,s390_base_mcck_handler_fn
29 lmg %r0,%r15,__LC_GPREGS_SAVE_AREA-4095(%r1)
30 lpswe __LC_MCK_OLD_PSW
31 ENDPROC(s390_base_mcck_handler)
35 .globl s390_base_mcck_handler_fn
36 s390_base_mcck_handler_fn:
40 ENTRY(s390_base_ext_handler)
41 stmg %r0,%r15,__LC_SAVE_AREA_ASYNC
43 0: aghi %r15,-STACK_FRAME_OVERHEAD
44 larl %r1,s390_base_ext_handler_fn
49 1: lmg %r0,%r15,__LC_SAVE_AREA_ASYNC
50 ni __LC_EXT_OLD_PSW+1,0xfd # clear wait state bit
51 lpswe __LC_EXT_OLD_PSW
52 ENDPROC(s390_base_ext_handler)
56 .globl s390_base_ext_handler_fn
57 s390_base_ext_handler_fn:
61 ENTRY(s390_base_pgm_handler)
62 stmg %r0,%r15,__LC_SAVE_AREA_SYNC
64 0: aghi %r15,-STACK_FRAME_OVERHEAD
65 larl %r1,s390_base_pgm_handler_fn
70 lmg %r0,%r15,__LC_SAVE_AREA_SYNC
71 lpswe __LC_PGM_OLD_PSW
72 1: lpswe disabled_wait_psw-0b(%r13)
73 ENDPROC(s390_base_pgm_handler)
77 .quad 0x0002000180000000,0x0000000000000000 + s390_base_pgm_handler
81 .globl s390_base_pgm_handler_fn
82 s390_base_pgm_handler_fn: