xref: /openbmc/linux/arch/s390/kernel/entry.h (revision b6dcefde)
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 
8 typedef void pgm_check_handler_t(struct pt_regs *, long);
9 extern pgm_check_handler_t *pgm_check_table[128];
10 pgm_check_handler_t do_protection_exception;
11 pgm_check_handler_t do_dat_exception;
12 
13 extern int sysctl_userprocess_debug;
14 
15 void do_single_step(struct pt_regs *regs);
16 void syscall_trace(struct pt_regs *regs, int entryexit);
17 void kernel_stack_overflow(struct pt_regs * regs);
18 void do_signal(struct pt_regs *regs);
19 int handle_signal32(unsigned long sig, struct k_sigaction *ka,
20 		    siginfo_t *info, sigset_t *oldset, struct pt_regs *regs);
21 
22 void do_extint(struct pt_regs *regs, unsigned short code);
23 int __cpuinit start_secondary(void *cpuvoid);
24 void __init startup_init(void);
25 void die(const char * str, struct pt_regs * regs, long err);
26 
27 struct new_utsname;
28 struct mmap_arg_struct;
29 struct fadvise64_64_args;
30 struct old_sigaction;
31 struct sel_arg_struct;
32 
33 long sys_mmap2(struct mmap_arg_struct __user  *arg);
34 long sys_s390_old_mmap(struct mmap_arg_struct __user *arg);
35 long sys_ipc(uint call, int first, unsigned long second,
36 	     unsigned long third, void __user *ptr);
37 long sys_s390_newuname(struct new_utsname __user *name);
38 long sys_s390_personality(unsigned long personality);
39 long sys_s390_fadvise64(int fd, u32 offset_high, u32 offset_low,
40 		    size_t len, int advice);
41 long sys_s390_fadvise64_64(struct fadvise64_64_args __user *args);
42 long sys_s390_fallocate(int fd, int mode, loff_t offset, u32 len_high,
43 			u32 len_low);
44 long sys_fork(void);
45 long sys_clone(unsigned long newsp, unsigned long clone_flags,
46 	       int __user *parent_tidptr, int __user *child_tidptr);
47 long sys_vfork(void);
48 void execve_tail(void);
49 long sys_execve(char __user *name, char __user * __user *argv,
50 		char __user * __user *envp);
51 long sys_sigsuspend(int history0, int history1, old_sigset_t mask);
52 long sys_sigaction(int sig, const struct old_sigaction __user *act,
53 		   struct old_sigaction __user *oact);
54 long sys_sigaltstack(const stack_t __user *uss, stack_t __user *uoss);
55 long sys_sigreturn(void);
56 long sys_rt_sigreturn(void);
57 long sys32_sigreturn(void);
58 long sys32_rt_sigreturn(void);
59 
60 #endif /* _ENTRY_H */
61