blob: e9b04c33d38306781f1c5d3ead2c5a3ba3b0d009 [file] [log] [blame]
Heiko Carstensa8061702008-04-17 07:46:26 +02001#ifndef _ENTRY_H
2#define _ENTRY_H
3
4#include <linux/types.h>
5#include <linux/signal.h>
6#include <asm/ptrace.h>
Martin Schwidefsky4c1051e2012-03-11 11:59:27 -04007#include <asm/cputime.h>
Martin Schwidefsky638ad342011-10-30 15:17:13 +01008
Martin Schwidefsky638ad342011-10-30 15:17:13 +01009extern void *restart_stack;
Michael Holzheu91c15a92013-04-08 16:09:31 +020010extern unsigned long suspend_zero_pages;
Martin Schwidefsky638ad342011-10-30 15:17:13 +010011
Martin Schwidefsky8b646bd2012-03-11 11:59:26 -040012void system_call(void);
13void pgm_check_handler(void);
14void ext_int_handler(void);
15void io_int_handler(void);
16void mcck_int_handler(void);
17void restart_int_handler(void);
18void restart_call_handler(void);
Martin Schwidefsky27f6b412012-07-20 11:15:08 +020019void psw_idle(struct s390_idle_data *, unsigned long);
Martin Schwidefsky8b646bd2012-03-11 11:59:26 -040020
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);
26void do_asce_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);
47
Martin Schwidefsky5e9a2692011-01-05 12:48:10 +010048void do_per_trap(struct pt_regs *regs);
Heiko Carstensa8061702008-04-17 07:46:26 +020049void syscall_trace(struct pt_regs *regs, int entryexit);
50void kernel_stack_overflow(struct pt_regs * regs);
51void do_signal(struct pt_regs *regs);
Al Viroa610d6e2012-05-21 23:42:15 -040052void handle_signal32(unsigned long sig, struct k_sigaction *ka,
Heiko Carstensa8061702008-04-17 07:46:26 +020053 siginfo_t *info, sigset_t *oldset, struct pt_regs *regs);
Martin Schwidefsky638ad342011-10-30 15:17:13 +010054void do_notify_resume(struct pt_regs *regs);
Heiko Carstensa8061702008-04-17 07:46:26 +020055
Heiko Carstens63df41d62013-09-06 19:10:48 +020056void __init init_IRQ(void);
57void do_IRQ(struct pt_regs *regs, int irq);
Martin Schwidefsky638ad342011-10-30 15:17:13 +010058void do_restart(void);
Heiko Carstensa8061702008-04-17 07:46:26 +020059void __init startup_init(void);
Martin Schwidefskyaa33c8c2011-12-27 11:27:18 +010060void die(struct pt_regs *regs, const char *str);
Heiko Carstens63df41d62013-09-06 19:10:48 +020061int setup_profiling_timer(unsigned int multiplier);
Martin Schwidefsky638ad342011-10-30 15:17:13 +010062void __init time_init(void);
Heiko Carstens63df41d62013-09-06 19:10:48 +020063int pfn_is_nosave(unsigned long);
64void s390_early_resume(void);
65unsigned long prepare_ftrace_return(unsigned long parent, unsigned long ip);
Martin Schwidefsky638ad342011-10-30 15:17:13 +010066
Christoph Hellwiga4679372010-03-10 15:21:15 -080067struct s390_mmap_arg_struct;
Heiko Carstensa8061702008-04-17 07:46:26 +020068struct fadvise64_64_args;
69struct old_sigaction;
Heiko Carstensa8061702008-04-17 07:46:26 +020070
Heiko Carstensa8061702008-04-17 07:46:26 +020071long sys_sigreturn(void);
72long sys_rt_sigreturn(void);
73long sys32_sigreturn(void);
74long sys32_rt_sigreturn(void);
Heiko Carstensa8061702008-04-17 07:46:26 +020075
76#endif /* _ENTRY_H */