blob: c3a736a3ed4458f0187d8f041f62fb1e590d877e [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;
10
Martin Schwidefsky8b646bd2012-03-11 11:59:26 -040011void system_call(void);
12void pgm_check_handler(void);
13void ext_int_handler(void);
14void io_int_handler(void);
15void mcck_int_handler(void);
16void restart_int_handler(void);
17void restart_call_handler(void);
Martin Schwidefsky27f6b412012-07-20 11:15:08 +020018void psw_idle(struct s390_idle_data *, unsigned long);
Martin Schwidefsky8b646bd2012-03-11 11:59:26 -040019
Martin Schwidefsky638ad342011-10-30 15:17:13 +010020asmlinkage long do_syscall_trace_enter(struct pt_regs *regs);
21asmlinkage void do_syscall_trace_exit(struct pt_regs *regs);
22
Martin Schwidefskyaa33c8c2011-12-27 11:27:18 +010023void do_protection_exception(struct pt_regs *regs);
24void do_dat_exception(struct pt_regs *regs);
25void do_asce_exception(struct pt_regs *regs);
Heiko Carstensa8061702008-04-17 07:46:26 +020026
Heiko Carstensb01a37a2012-10-18 18:10:06 +020027void addressing_exception(struct pt_regs *regs);
28void data_exception(struct pt_regs *regs);
29void default_trap_handler(struct pt_regs *regs);
30void divide_exception(struct pt_regs *regs);
31void execute_exception(struct pt_regs *regs);
32void hfp_divide_exception(struct pt_regs *regs);
33void hfp_overflow_exception(struct pt_regs *regs);
34void hfp_significance_exception(struct pt_regs *regs);
35void hfp_sqrt_exception(struct pt_regs *regs);
36void hfp_underflow_exception(struct pt_regs *regs);
37void illegal_op(struct pt_regs *regs);
38void operand_exception(struct pt_regs *regs);
39void overflow_exception(struct pt_regs *regs);
40void privileged_op(struct pt_regs *regs);
41void space_switch_exception(struct pt_regs *regs);
42void special_op_exception(struct pt_regs *regs);
43void specification_exception(struct pt_regs *regs);
44void transaction_exception(struct pt_regs *regs);
45void translation_exception(struct pt_regs *regs);
46
Martin Schwidefsky5e9a2692011-01-05 12:48:10 +010047void do_per_trap(struct pt_regs *regs);
Heiko Carstensa8061702008-04-17 07:46:26 +020048void syscall_trace(struct pt_regs *regs, int entryexit);
49void kernel_stack_overflow(struct pt_regs * regs);
50void do_signal(struct pt_regs *regs);
Al Viroa610d6e2012-05-21 23:42:15 -040051void handle_signal32(unsigned long sig, struct k_sigaction *ka,
Heiko Carstensa8061702008-04-17 07:46:26 +020052 siginfo_t *info, sigset_t *oldset, struct pt_regs *regs);
Martin Schwidefsky638ad342011-10-30 15:17:13 +010053void do_notify_resume(struct pt_regs *regs);
Heiko Carstensa8061702008-04-17 07:46:26 +020054
Heiko Carstensfde15c32012-03-11 11:59:31 -040055struct ext_code;
56void do_extint(struct pt_regs *regs, struct ext_code, unsigned int, unsigned long);
Martin Schwidefsky638ad342011-10-30 15:17:13 +010057void do_restart(void);
Heiko Carstensa8061702008-04-17 07:46:26 +020058void __init startup_init(void);
Martin Schwidefskyaa33c8c2011-12-27 11:27:18 +010059void die(struct pt_regs *regs, const char *str);
Heiko Carstensa8061702008-04-17 07:46:26 +020060
Martin Schwidefsky638ad342011-10-30 15:17:13 +010061void __init time_init(void);
62
Christoph Hellwiga4679372010-03-10 15:21:15 -080063struct s390_mmap_arg_struct;
Heiko Carstensa8061702008-04-17 07:46:26 +020064struct fadvise64_64_args;
65struct old_sigaction;
Heiko Carstensa8061702008-04-17 07:46:26 +020066
Christoph Hellwiga4679372010-03-10 15:21:15 -080067long sys_mmap2(struct s390_mmap_arg_struct __user *arg);
Christoph Hellwigbaed7fc2010-03-10 15:21:18 -080068long sys_s390_ipc(uint call, int first, unsigned long second,
Heiko Carstensa8061702008-04-17 07:46:26 +020069 unsigned long third, void __user *ptr);
Heiko Carstens3a110372010-08-13 10:06:39 +020070long sys_s390_personality(unsigned int personality);
Heiko Carstens26689452009-01-14 14:14:36 +010071long sys_s390_fadvise64(int fd, u32 offset_high, u32 offset_low,
Heiko Carstensa8061702008-04-17 07:46:26 +020072 size_t len, int advice);
Heiko Carstens26689452009-01-14 14:14:36 +010073long sys_s390_fadvise64_64(struct fadvise64_64_args __user *args);
74long sys_s390_fallocate(int fd, int mode, loff_t offset, u32 len_high,
75 u32 len_low);
Heiko Carstensa8061702008-04-17 07:46:26 +020076long sys_sigreturn(void);
77long sys_rt_sigreturn(void);
78long sys32_sigreturn(void);
79long sys32_rt_sigreturn(void);
Heiko Carstensa8061702008-04-17 07:46:26 +020080
81#endif /* _ENTRY_H */