Heiko Carstens | a806170 | 2008-04-17 07:46:26 +0200 | [diff] [blame] | 1 | #ifndef _ENTRY_H |
| 2 | #define _ENTRY_H |
| 3 | |
| 4 | #include <linux/types.h> |
| 5 | #include <linux/signal.h> |
| 6 | #include <asm/ptrace.h> |
Martin Schwidefsky | 4c1051e | 2012-03-11 11:59:27 -0400 | [diff] [blame] | 7 | #include <asm/cputime.h> |
Martin Schwidefsky | 638ad34 | 2011-10-30 15:17:13 +0100 | [diff] [blame] | 8 | |
Martin Schwidefsky | 638ad34 | 2011-10-30 15:17:13 +0100 | [diff] [blame] | 9 | extern void *restart_stack; |
Michael Holzheu | 91c15a9 | 2013-04-08 16:09:31 +0200 | [diff] [blame] | 10 | extern unsigned long suspend_zero_pages; |
Martin Schwidefsky | 638ad34 | 2011-10-30 15:17:13 +0100 | [diff] [blame] | 11 | |
Martin Schwidefsky | 8b646bd | 2012-03-11 11:59:26 -0400 | [diff] [blame] | 12 | void system_call(void); |
| 13 | void pgm_check_handler(void); |
| 14 | void ext_int_handler(void); |
| 15 | void io_int_handler(void); |
| 16 | void mcck_int_handler(void); |
| 17 | void restart_int_handler(void); |
| 18 | void restart_call_handler(void); |
Martin Schwidefsky | 27f6b41 | 2012-07-20 11:15:08 +0200 | [diff] [blame] | 19 | void psw_idle(struct s390_idle_data *, unsigned long); |
Martin Schwidefsky | 8b646bd | 2012-03-11 11:59:26 -0400 | [diff] [blame] | 20 | |
Martin Schwidefsky | 638ad34 | 2011-10-30 15:17:13 +0100 | [diff] [blame] | 21 | asmlinkage long do_syscall_trace_enter(struct pt_regs *regs); |
| 22 | asmlinkage void do_syscall_trace_exit(struct pt_regs *regs); |
| 23 | |
Martin Schwidefsky | aa33c8c | 2011-12-27 11:27:18 +0100 | [diff] [blame] | 24 | void do_protection_exception(struct pt_regs *regs); |
| 25 | void do_dat_exception(struct pt_regs *regs); |
| 26 | void do_asce_exception(struct pt_regs *regs); |
Heiko Carstens | a806170 | 2008-04-17 07:46:26 +0200 | [diff] [blame] | 27 | |
Heiko Carstens | b01a37a | 2012-10-18 18:10:06 +0200 | [diff] [blame] | 28 | void addressing_exception(struct pt_regs *regs); |
| 29 | void data_exception(struct pt_regs *regs); |
| 30 | void default_trap_handler(struct pt_regs *regs); |
| 31 | void divide_exception(struct pt_regs *regs); |
| 32 | void execute_exception(struct pt_regs *regs); |
| 33 | void hfp_divide_exception(struct pt_regs *regs); |
| 34 | void hfp_overflow_exception(struct pt_regs *regs); |
| 35 | void hfp_significance_exception(struct pt_regs *regs); |
| 36 | void hfp_sqrt_exception(struct pt_regs *regs); |
| 37 | void hfp_underflow_exception(struct pt_regs *regs); |
| 38 | void illegal_op(struct pt_regs *regs); |
| 39 | void operand_exception(struct pt_regs *regs); |
| 40 | void overflow_exception(struct pt_regs *regs); |
| 41 | void privileged_op(struct pt_regs *regs); |
| 42 | void space_switch_exception(struct pt_regs *regs); |
| 43 | void special_op_exception(struct pt_regs *regs); |
| 44 | void specification_exception(struct pt_regs *regs); |
| 45 | void transaction_exception(struct pt_regs *regs); |
| 46 | void translation_exception(struct pt_regs *regs); |
| 47 | |
Martin Schwidefsky | 5e9a269 | 2011-01-05 12:48:10 +0100 | [diff] [blame] | 48 | void do_per_trap(struct pt_regs *regs); |
Heiko Carstens | a806170 | 2008-04-17 07:46:26 +0200 | [diff] [blame] | 49 | void syscall_trace(struct pt_regs *regs, int entryexit); |
| 50 | void kernel_stack_overflow(struct pt_regs * regs); |
| 51 | void do_signal(struct pt_regs *regs); |
Al Viro | a610d6e | 2012-05-21 23:42:15 -0400 | [diff] [blame] | 52 | void handle_signal32(unsigned long sig, struct k_sigaction *ka, |
Heiko Carstens | a806170 | 2008-04-17 07:46:26 +0200 | [diff] [blame] | 53 | siginfo_t *info, sigset_t *oldset, struct pt_regs *regs); |
Martin Schwidefsky | 638ad34 | 2011-10-30 15:17:13 +0100 | [diff] [blame] | 54 | void do_notify_resume(struct pt_regs *regs); |
Heiko Carstens | a806170 | 2008-04-17 07:46:26 +0200 | [diff] [blame] | 55 | |
Heiko Carstens | 63df41d6 | 2013-09-06 19:10:48 +0200 | [diff] [blame^] | 56 | void __init init_IRQ(void); |
| 57 | void do_IRQ(struct pt_regs *regs, int irq); |
Martin Schwidefsky | 638ad34 | 2011-10-30 15:17:13 +0100 | [diff] [blame] | 58 | void do_restart(void); |
Heiko Carstens | a806170 | 2008-04-17 07:46:26 +0200 | [diff] [blame] | 59 | void __init startup_init(void); |
Martin Schwidefsky | aa33c8c | 2011-12-27 11:27:18 +0100 | [diff] [blame] | 60 | void die(struct pt_regs *regs, const char *str); |
Heiko Carstens | 63df41d6 | 2013-09-06 19:10:48 +0200 | [diff] [blame^] | 61 | int setup_profiling_timer(unsigned int multiplier); |
Martin Schwidefsky | 638ad34 | 2011-10-30 15:17:13 +0100 | [diff] [blame] | 62 | void __init time_init(void); |
Heiko Carstens | 63df41d6 | 2013-09-06 19:10:48 +0200 | [diff] [blame^] | 63 | int pfn_is_nosave(unsigned long); |
| 64 | void s390_early_resume(void); |
| 65 | unsigned long prepare_ftrace_return(unsigned long parent, unsigned long ip); |
Martin Schwidefsky | 638ad34 | 2011-10-30 15:17:13 +0100 | [diff] [blame] | 66 | |
Christoph Hellwig | a467937 | 2010-03-10 15:21:15 -0800 | [diff] [blame] | 67 | struct s390_mmap_arg_struct; |
Heiko Carstens | a806170 | 2008-04-17 07:46:26 +0200 | [diff] [blame] | 68 | struct fadvise64_64_args; |
| 69 | struct old_sigaction; |
Heiko Carstens | a806170 | 2008-04-17 07:46:26 +0200 | [diff] [blame] | 70 | |
Heiko Carstens | a806170 | 2008-04-17 07:46:26 +0200 | [diff] [blame] | 71 | long sys_sigreturn(void); |
| 72 | long sys_rt_sigreturn(void); |
| 73 | long sys32_sigreturn(void); |
| 74 | long sys32_rt_sigreturn(void); |
Heiko Carstens | a806170 | 2008-04-17 07:46:26 +0200 | [diff] [blame] | 75 | |
| 76 | #endif /* _ENTRY_H */ |