xref: /linux/arch/s390/kernel/entry.h (revision 0d456bad36d42d16022be045c8a53ddbb59ee478)
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/cputime.h>
8 
9 extern void *restart_stack;
10 
11 void system_call(void);
12 void pgm_check_handler(void);
13 void ext_int_handler(void);
14 void io_int_handler(void);
15 void mcck_int_handler(void);
16 void restart_int_handler(void);
17 void restart_call_handler(void);
18 void psw_idle(struct s390_idle_data *, unsigned long);
19 
20 asmlinkage long do_syscall_trace_enter(struct pt_regs *regs);
21 asmlinkage void do_syscall_trace_exit(struct pt_regs *regs);
22 
23 void do_protection_exception(struct pt_regs *regs);
24 void do_dat_exception(struct pt_regs *regs);
25 void do_asce_exception(struct pt_regs *regs);
26 
27 void addressing_exception(struct pt_regs *regs);
28 void data_exception(struct pt_regs *regs);
29 void default_trap_handler(struct pt_regs *regs);
30 void divide_exception(struct pt_regs *regs);
31 void execute_exception(struct pt_regs *regs);
32 void hfp_divide_exception(struct pt_regs *regs);
33 void hfp_overflow_exception(struct pt_regs *regs);
34 void hfp_significance_exception(struct pt_regs *regs);
35 void hfp_sqrt_exception(struct pt_regs *regs);
36 void hfp_underflow_exception(struct pt_regs *regs);
37 void illegal_op(struct pt_regs *regs);
38 void operand_exception(struct pt_regs *regs);
39 void overflow_exception(struct pt_regs *regs);
40 void privileged_op(struct pt_regs *regs);
41 void space_switch_exception(struct pt_regs *regs);
42 void special_op_exception(struct pt_regs *regs);
43 void specification_exception(struct pt_regs *regs);
44 void transaction_exception(struct pt_regs *regs);
45 void translation_exception(struct pt_regs *regs);
46 
47 void do_per_trap(struct pt_regs *regs);
48 void syscall_trace(struct pt_regs *regs, int entryexit);
49 void kernel_stack_overflow(struct pt_regs * regs);
50 void do_signal(struct pt_regs *regs);
51 void handle_signal32(unsigned long sig, struct k_sigaction *ka,
52 		    siginfo_t *info, sigset_t *oldset, struct pt_regs *regs);
53 void do_notify_resume(struct pt_regs *regs);
54 
55 struct ext_code;
56 void do_extint(struct pt_regs *regs, struct ext_code, unsigned int, unsigned long);
57 void do_restart(void);
58 void __init startup_init(void);
59 void die(struct pt_regs *regs, const char *str);
60 
61 void __init time_init(void);
62 
63 struct s390_mmap_arg_struct;
64 struct fadvise64_64_args;
65 struct old_sigaction;
66 
67 long sys_mmap2(struct s390_mmap_arg_struct __user  *arg);
68 long sys_s390_ipc(uint call, int first, unsigned long second,
69 	     unsigned long third, void __user *ptr);
70 long sys_s390_personality(unsigned int personality);
71 long sys_s390_fadvise64(int fd, u32 offset_high, u32 offset_low,
72 		    size_t len, int advice);
73 long sys_s390_fadvise64_64(struct fadvise64_64_args __user *args);
74 long sys_s390_fallocate(int fd, int mode, loff_t offset, u32 len_high,
75 			u32 len_low);
76 long sys_sigsuspend(int history0, int history1, old_sigset_t mask);
77 long sys_sigaction(int sig, const struct old_sigaction __user *act,
78 		   struct old_sigaction __user *oact);
79 long sys_sigaltstack(const stack_t __user *uss, stack_t __user *uoss);
80 long sys_sigreturn(void);
81 long sys_rt_sigreturn(void);
82 long sys32_sigreturn(void);
83 long sys32_rt_sigreturn(void);
84 
85 #endif /* _ENTRY_H */
86