xref: /linux/arch/s390/kernel/entry.h (revision 04eeb606a8383b306f4bc6991da8231b5f3924b0)
1 #ifndef _ENTRY_H
2 #define _ENTRY_H
3 
4 #include <linux/types.h>
5 #include <linux/signal.h>
6 #include <asm/ptrace.h>
7 #include <asm/idle.h>
8 
9 extern void *restart_stack;
10 extern unsigned long suspend_zero_pages;
11 
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);
19 void psw_idle(struct s390_idle_data *, unsigned long);
20 
21 asmlinkage long do_syscall_trace_enter(struct pt_regs *regs);
22 asmlinkage void do_syscall_trace_exit(struct pt_regs *regs);
23 
24 int alloc_vector_registers(struct task_struct *tsk);
25 
26 void do_protection_exception(struct pt_regs *regs);
27 void do_dat_exception(struct pt_regs *regs);
28 
29 void addressing_exception(struct pt_regs *regs);
30 void data_exception(struct pt_regs *regs);
31 void default_trap_handler(struct pt_regs *regs);
32 void divide_exception(struct pt_regs *regs);
33 void execute_exception(struct pt_regs *regs);
34 void hfp_divide_exception(struct pt_regs *regs);
35 void hfp_overflow_exception(struct pt_regs *regs);
36 void hfp_significance_exception(struct pt_regs *regs);
37 void hfp_sqrt_exception(struct pt_regs *regs);
38 void hfp_underflow_exception(struct pt_regs *regs);
39 void illegal_op(struct pt_regs *regs);
40 void operand_exception(struct pt_regs *regs);
41 void overflow_exception(struct pt_regs *regs);
42 void privileged_op(struct pt_regs *regs);
43 void space_switch_exception(struct pt_regs *regs);
44 void special_op_exception(struct pt_regs *regs);
45 void specification_exception(struct pt_regs *regs);
46 void transaction_exception(struct pt_regs *regs);
47 void translation_exception(struct pt_regs *regs);
48 void vector_exception(struct pt_regs *regs);
49 
50 void do_per_trap(struct pt_regs *regs);
51 void do_report_trap(struct pt_regs *regs, int si_signo, int si_code, char *str);
52 void syscall_trace(struct pt_regs *regs, int entryexit);
53 void kernel_stack_overflow(struct pt_regs * regs);
54 void do_signal(struct pt_regs *regs);
55 void handle_signal32(struct ksignal *ksig, sigset_t *oldset,
56 		     struct pt_regs *regs);
57 void do_notify_resume(struct pt_regs *regs);
58 
59 void __init init_IRQ(void);
60 void do_IRQ(struct pt_regs *regs, int irq);
61 void do_restart(void);
62 void __init startup_init(void);
63 void die(struct pt_regs *regs, const char *str);
64 int setup_profiling_timer(unsigned int multiplier);
65 void __init time_init(void);
66 int pfn_is_nosave(unsigned long);
67 void s390_early_resume(void);
68 unsigned long prepare_ftrace_return(unsigned long parent, unsigned long ip);
69 
70 struct s390_mmap_arg_struct;
71 struct fadvise64_64_args;
72 struct old_sigaction;
73 
74 long sys_s390_personality(unsigned int personality);
75 long sys_s390_runtime_instr(int command, int signum);
76 
77 #endif /* _ENTRY_H */
78