blob: dbf5f7e182469da8754b6c407396798938bd839c [file] [log] [blame]
Heiko Carstensa8061702008-04-17 07:46:26 +02001#ifndef _ENTRY_H
2#define _ENTRY_H
3
Heiko Carstens521b00c2016-05-07 12:15:21 +02004#include <linux/percpu.h>
Heiko Carstensa8061702008-04-17 07:46:26 +02005#include <linux/types.h>
6#include <linux/signal.h>
7#include <asm/ptrace.h>
Martin Schwidefskyb5f87f12014-10-01 10:57:57 +02008#include <asm/idle.h>
Martin Schwidefsky638ad342011-10-30 15:17:13 +01009
Martin Schwidefsky638ad342011-10-30 15:17:13 +010010extern void *restart_stack;
Michael Holzheu91c15a92013-04-08 16:09:31 +020011extern unsigned long suspend_zero_pages;
Martin Schwidefsky638ad342011-10-30 15:17:13 +010012
Martin Schwidefsky8b646bd2012-03-11 11:59:26 -040013void system_call(void);
14void pgm_check_handler(void);
15void ext_int_handler(void);
16void io_int_handler(void);
17void mcck_int_handler(void);
18void restart_int_handler(void);
19void restart_call_handler(void);
20
Martin Schwidefsky638ad342011-10-30 15:17:13 +010021asmlinkage long do_syscall_trace_enter(struct pt_regs *regs);
22asmlinkage void do_syscall_trace_exit(struct pt_regs *regs);
23
Martin Schwidefskyaa33c8c2011-12-27 11:27:18 +010024void do_protection_exception(struct pt_regs *regs);
25void do_dat_exception(struct pt_regs *regs);
Heiko Carstensa8061702008-04-17 07:46:26 +020026
Heiko Carstensb01a37a2012-10-18 18:10:06 +020027void addressing_exception(struct pt_regs *regs);
28void data_exception(struct pt_regs *regs);
29void default_trap_handler(struct pt_regs *regs);
30void divide_exception(struct pt_regs *regs);
31void execute_exception(struct pt_regs *regs);
32void hfp_divide_exception(struct pt_regs *regs);
33void hfp_overflow_exception(struct pt_regs *regs);
34void hfp_significance_exception(struct pt_regs *regs);
35void hfp_sqrt_exception(struct pt_regs *regs);
36void hfp_underflow_exception(struct pt_regs *regs);
37void illegal_op(struct pt_regs *regs);
38void operand_exception(struct pt_regs *regs);
39void overflow_exception(struct pt_regs *regs);
40void privileged_op(struct pt_regs *regs);
41void space_switch_exception(struct pt_regs *regs);
42void special_op_exception(struct pt_regs *regs);
43void specification_exception(struct pt_regs *regs);
44void transaction_exception(struct pt_regs *regs);
45void translation_exception(struct pt_regs *regs);
Martin Schwidefsky80703612014-10-06 17:53:53 +020046void vector_exception(struct pt_regs *regs);
Heiko Carstensb01a37a2012-10-18 18:10:06 +020047
Martin Schwidefsky5e9a2692011-01-05 12:48:10 +010048void do_per_trap(struct pt_regs *regs);
Jan Willeke2a0a5b22014-09-22 16:39:06 +020049void do_report_trap(struct pt_regs *regs, int si_signo, int si_code, char *str);
Heiko Carstensa8061702008-04-17 07:46:26 +020050void syscall_trace(struct pt_regs *regs, int entryexit);
51void kernel_stack_overflow(struct pt_regs * regs);
52void do_signal(struct pt_regs *regs);
Richard Weinberger067bf2d2014-07-13 22:21:03 +020053void handle_signal32(struct ksignal *ksig, sigset_t *oldset,
54 struct pt_regs *regs);
Martin Schwidefsky638ad342011-10-30 15:17:13 +010055void do_notify_resume(struct pt_regs *regs);
Heiko Carstensa8061702008-04-17 07:46:26 +020056
Heiko Carstens63df41d62013-09-06 19:10:48 +020057void __init init_IRQ(void);
58void do_IRQ(struct pt_regs *regs, int irq);
Martin Schwidefsky638ad342011-10-30 15:17:13 +010059void do_restart(void);
Heiko Carstensa8061702008-04-17 07:46:26 +020060void __init startup_init(void);
Martin Schwidefskyaa33c8c2011-12-27 11:27:18 +010061void die(struct pt_regs *regs, const char *str);
Heiko Carstens63df41d62013-09-06 19:10:48 +020062int setup_profiling_timer(unsigned int multiplier);
Martin Schwidefsky638ad342011-10-30 15:17:13 +010063void __init time_init(void);
Heiko Carstens63df41d62013-09-06 19:10:48 +020064int pfn_is_nosave(unsigned long);
65void s390_early_resume(void);
66unsigned long prepare_ftrace_return(unsigned long parent, unsigned long ip);
Martin Schwidefsky638ad342011-10-30 15:17:13 +010067
Christoph Hellwiga4679372010-03-10 15:21:15 -080068struct s390_mmap_arg_struct;
Heiko Carstensa8061702008-04-17 07:46:26 +020069struct fadvise64_64_args;
70struct old_sigaction;
Heiko Carstensa8061702008-04-17 07:46:26 +020071
Heiko Carstense0a50542014-12-12 13:11:08 +010072long sys_rt_sigreturn(void);
73long sys_sigreturn(void);
74
Heiko Carstens86d295e2014-02-27 15:16:04 +010075long sys_s390_personality(unsigned int personality);
Heiko Carstens00fcb1492014-03-01 12:18:46 +010076long sys_s390_runtime_instr(int command, int signum);
Martin Schwidefsky916cda12016-01-26 14:10:34 +010077long sys_s390_guarded_storage(int command, struct gs_cb __user *);
Alexey Ishchuk4eafad72014-11-14 14:27:58 +010078long sys_s390_pci_mmio_write(unsigned long, const void __user *, size_t);
79long sys_s390_pci_mmio_read(unsigned long, void __user *, size_t);
Heiko Carstens521b00c2016-05-07 12:15:21 +020080
81DECLARE_PER_CPU(u64, mt_cycles[8]);
82
Heiko Carstensbe2412c2016-06-27 15:52:38 +020083void verify_facilities(void);
Martin Schwidefsky916cda12016-01-26 14:10:34 +010084void gs_load_bc_cb(struct pt_regs *regs);
Heiko Carstensb5a882f2017-02-17 08:13:28 +010085void set_fs_fixup(void);
Heiko Carstensbe2412c2016-06-27 15:52:38 +020086
Heiko Carstensa8061702008-04-17 07:46:26 +020087#endif /* _ENTRY_H */