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_ext_handler)
20 stmg %r0,%r15,__LC_SAVE_AREA_ASYNC
22 0: aghi %r15,-STACK_FRAME_OVERHEAD
23 larl %r1,s390_base_ext_handler_fn
28 1: lmg %r0,%r15,__LC_SAVE_AREA_ASYNC
29 ni __LC_EXT_OLD_PSW+1,0xfd # clear wait state bit
30 lpswe __LC_EXT_OLD_PSW
31 ENDPROC(s390_base_ext_handler)
35 .globl s390_base_ext_handler_fn
36 s390_base_ext_handler_fn:
40 ENTRY(s390_base_pgm_handler)
41 stmg %r0,%r15,__LC_SAVE_AREA_SYNC
43 0: aghi %r15,-STACK_FRAME_OVERHEAD
44 larl %r1,s390_base_pgm_handler_fn
49 lmg %r0,%r15,__LC_SAVE_AREA_SYNC
50 lpswe __LC_PGM_OLD_PSW
51 1: lpswe disabled_wait_psw-0b(%r13)
52 ENDPROC(s390_base_pgm_handler)
56 .quad 0x0002000180000000,0x0000000000000000 + s390_base_pgm_handler
60 .globl s390_base_pgm_handler_fn
61 s390_base_pgm_handler_fn: