blob: 834df047d35f67e1367710ab3a0b27b29ef2ea1b [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 Schwidefskyb5f87f12014-10-01 10:57:57 +02007#include <asm/idle.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 Schwidefsky80703612014-10-06 17:53:53 +020024int alloc_vector_registers(struct task_struct *tsk);
25
Martin Schwidefskyaa33c8c2011-12-27 11:27:18 +010026void do_protection_exception(struct pt_regs *regs);
27void do_dat_exception(struct pt_regs *regs);
Heiko Carstensa8061702008-04-17 07:46:26 +020028
Heiko Carstensb01a37a2012-10-18 18:10:06 +020029void addressing_exception(struct pt_regs *regs);
30void data_exception(struct pt_regs *regs);
31void default_trap_handler(struct pt_regs *regs);
32void divide_exception(struct pt_regs *regs);
33void execute_exception(struct pt_regs *regs);
34void hfp_divide_exception(struct pt_regs *regs);
35void hfp_overflow_exception(struct pt_regs *regs);
36void hfp_significance_exception(struct pt_regs *regs);
37void hfp_sqrt_exception(struct pt_regs *regs);
38void hfp_underflow_exception(struct pt_regs *regs);
39void illegal_op(struct pt_regs *regs);
40void operand_exception(struct pt_regs *regs);
41void overflow_exception(struct pt_regs *regs);
42void privileged_op(struct pt_regs *regs);
43void space_switch_exception(struct pt_regs *regs);
44void special_op_exception(struct pt_regs *regs);
45void specification_exception(struct pt_regs *regs);
46void transaction_exception(struct pt_regs *regs);
47void translation_exception(struct pt_regs *regs);
Martin Schwidefsky80703612014-10-06 17:53:53 +020048void vector_exception(struct pt_regs *regs);
Heiko Carstensb01a37a2012-10-18 18:10:06 +020049
Martin Schwidefsky5e9a2692011-01-05 12:48:10 +010050void do_per_trap(struct pt_regs *regs);
Jan Willeke2a0a5b22014-09-22 16:39:06 +020051void do_report_trap(struct pt_regs *regs, int si_signo, int si_code, char *str);
Heiko Carstensa8061702008-04-17 07:46:26 +020052void syscall_trace(struct pt_regs *regs, int entryexit);
53void kernel_stack_overflow(struct pt_regs * regs);
54void do_signal(struct pt_regs *regs);
Richard Weinberger067bf2d2014-07-13 22:21:03 +020055void handle_signal32(struct ksignal *ksig, sigset_t *oldset,
56 struct pt_regs *regs);
Martin Schwidefsky638ad342011-10-30 15:17:13 +010057void do_notify_resume(struct pt_regs *regs);
Heiko Carstensa8061702008-04-17 07:46:26 +020058
Heiko Carstens63df41d62013-09-06 19:10:48 +020059void __init init_IRQ(void);
60void do_IRQ(struct pt_regs *regs, int irq);
Martin Schwidefsky638ad342011-10-30 15:17:13 +010061void do_restart(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);
Alexey Ishchuk4eafad72014-11-14 14:27:58 +010079long sys_s390_pci_mmio_write(unsigned long, const void __user *, size_t);
80long sys_s390_pci_mmio_read(unsigned long, void __user *, size_t);
Heiko Carstensa8061702008-04-17 07:46:26 +020081#endif /* _ENTRY_H */