blob: c3816ae108b085afca4a9326ac2d0eb9c3f3b6a2 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Heiko Carstensa8061702008-04-17 07:46:26 +02002#ifndef _ENTRY_H
3#define _ENTRY_H
4
Heiko Carstens521b00c2016-05-07 12:15:21 +02005#include <linux/percpu.h>
Heiko Carstensa8061702008-04-17 07:46:26 +02006#include <linux/types.h>
7#include <linux/signal.h>
8#include <asm/ptrace.h>
Martin Schwidefskyb5f87f12014-10-01 10:57:57 +02009#include <asm/idle.h>
Martin Schwidefsky638ad342011-10-30 15:17:13 +010010
Martin Schwidefsky638ad342011-10-30 15:17:13 +010011extern void *restart_stack;
Michael Holzheu91c15a92013-04-08 16:09:31 +020012extern unsigned long suspend_zero_pages;
Martin Schwidefsky638ad342011-10-30 15:17:13 +010013
Martin Schwidefsky8b646bd2012-03-11 11:59:26 -040014void system_call(void);
15void pgm_check_handler(void);
16void ext_int_handler(void);
17void io_int_handler(void);
18void mcck_int_handler(void);
19void restart_int_handler(void);
20void restart_call_handler(void);
21
Martin Schwidefsky638ad342011-10-30 15:17:13 +010022asmlinkage long do_syscall_trace_enter(struct pt_regs *regs);
23asmlinkage void do_syscall_trace_exit(struct pt_regs *regs);
24
Martin Schwidefskyaa33c8c2011-12-27 11:27:18 +010025void do_protection_exception(struct pt_regs *regs);
26void do_dat_exception(struct pt_regs *regs);
Heiko Carstensa8061702008-04-17 07:46:26 +020027
Heiko Carstensb01a37a2012-10-18 18:10:06 +020028void addressing_exception(struct pt_regs *regs);
29void data_exception(struct pt_regs *regs);
30void default_trap_handler(struct pt_regs *regs);
31void divide_exception(struct pt_regs *regs);
32void execute_exception(struct pt_regs *regs);
33void hfp_divide_exception(struct pt_regs *regs);
34void hfp_overflow_exception(struct pt_regs *regs);
35void hfp_significance_exception(struct pt_regs *regs);
36void hfp_sqrt_exception(struct pt_regs *regs);
37void hfp_underflow_exception(struct pt_regs *regs);
38void illegal_op(struct pt_regs *regs);
39void operand_exception(struct pt_regs *regs);
40void overflow_exception(struct pt_regs *regs);
41void privileged_op(struct pt_regs *regs);
42void space_switch_exception(struct pt_regs *regs);
43void special_op_exception(struct pt_regs *regs);
44void specification_exception(struct pt_regs *regs);
45void transaction_exception(struct pt_regs *regs);
46void translation_exception(struct pt_regs *regs);
Martin Schwidefsky80703612014-10-06 17:53:53 +020047void vector_exception(struct pt_regs *regs);
Heiko Carstensb01a37a2012-10-18 18:10:06 +020048
Martin Schwidefsky5e9a2692011-01-05 12:48:10 +010049void do_per_trap(struct pt_regs *regs);
Jan Willeke2a0a5b22014-09-22 16:39:06 +020050void do_report_trap(struct pt_regs *regs, int si_signo, int si_code, char *str);
Heiko Carstensa8061702008-04-17 07:46:26 +020051void syscall_trace(struct pt_regs *regs, int entryexit);
52void kernel_stack_overflow(struct pt_regs * regs);
53void do_signal(struct pt_regs *regs);
Richard Weinberger067bf2d2014-07-13 22:21:03 +020054void handle_signal32(struct ksignal *ksig, sigset_t *oldset,
55 struct pt_regs *regs);
Martin Schwidefsky638ad342011-10-30 15:17:13 +010056void do_notify_resume(struct pt_regs *regs);
Heiko Carstensa8061702008-04-17 07:46:26 +020057
Heiko Carstens63df41d62013-09-06 19:10:48 +020058void __init init_IRQ(void);
59void do_IRQ(struct pt_regs *regs, int irq);
Martin Schwidefsky638ad342011-10-30 15:17:13 +010060void do_restart(void);
Heiko Carstens971a9ca2018-05-04 13:22:12 +020061void __init startup_init_nobss(void);
Heiko Carstensa8061702008-04-17 07:46:26 +020062void __init startup_init(void);
Martin Schwidefskyaa33c8c2011-12-27 11:27:18 +010063void die(struct pt_regs *regs, const char *str);
Heiko Carstens63df41d62013-09-06 19:10:48 +020064int setup_profiling_timer(unsigned int multiplier);
Martin Schwidefsky638ad342011-10-30 15:17:13 +010065void __init time_init(void);
Heiko Carstens63df41d62013-09-06 19:10:48 +020066int pfn_is_nosave(unsigned long);
67void s390_early_resume(void);
68unsigned long prepare_ftrace_return(unsigned long parent, unsigned long ip);
Martin Schwidefsky638ad342011-10-30 15:17:13 +010069
Christoph Hellwiga4679372010-03-10 15:21:15 -080070struct s390_mmap_arg_struct;
Heiko Carstensa8061702008-04-17 07:46:26 +020071struct fadvise64_64_args;
72struct old_sigaction;
Heiko Carstensa8061702008-04-17 07:46:26 +020073
Heiko Carstense0a50542014-12-12 13:11:08 +010074long sys_rt_sigreturn(void);
75long sys_sigreturn(void);
76
Heiko Carstens86d295e2014-02-27 15:16:04 +010077long sys_s390_personality(unsigned int personality);
Heiko Carstens00fcb1492014-03-01 12:18:46 +010078long sys_s390_runtime_instr(int command, int signum);
Martin Schwidefsky916cda12016-01-26 14:10:34 +010079long sys_s390_guarded_storage(int command, struct gs_cb __user *);
Alexey Ishchuk4eafad72014-11-14 14:27:58 +010080long sys_s390_pci_mmio_write(unsigned long, const void __user *, size_t);
81long sys_s390_pci_mmio_read(unsigned long, void __user *, size_t);
QingFeng Hao3d8757b2017-09-29 12:41:52 +020082long sys_s390_sthyi(unsigned long function_code, void __user *buffer, u64 __user *return_code, unsigned long flags);
Heiko Carstens521b00c2016-05-07 12:15:21 +020083
84DECLARE_PER_CPU(u64, mt_cycles[8]);
85
Martin Schwidefsky916cda12016-01-26 14:10:34 +010086void gs_load_bc_cb(struct pt_regs *regs);
Heiko Carstensb5a882f2017-02-17 08:13:28 +010087void set_fs_fixup(void);
Heiko Carstensbe2412c2016-06-27 15:52:38 +020088
Martin Schwidefskyce3dc442017-09-12 16:37:33 +020089unsigned long stack_alloc(void);
90void stack_free(unsigned long stack);
91
Heiko Carstensa8061702008-04-17 07:46:26 +020092#endif /* _ENTRY_H */