2008-04-17 13:46:26 +08:00
|
|
|
#ifndef _ENTRY_H
|
|
|
|
#define _ENTRY_H
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include <linux/signal.h>
|
|
|
|
#include <asm/ptrace.h>
|
|
|
|
|
2011-10-30 22:17:13 +08:00
|
|
|
|
2011-12-27 18:27:18 +08:00
|
|
|
extern void (*pgm_check_table[128])(struct pt_regs *);
|
2011-10-30 22:17:13 +08:00
|
|
|
extern void *restart_stack;
|
|
|
|
|
2012-03-11 23:59:26 +08:00
|
|
|
void system_call(void);
|
|
|
|
void pgm_check_handler(void);
|
|
|
|
void ext_int_handler(void);
|
|
|
|
void io_int_handler(void);
|
|
|
|
void mcck_int_handler(void);
|
|
|
|
void restart_int_handler(void);
|
|
|
|
void restart_call_handler(void);
|
|
|
|
|
2011-10-30 22:17:13 +08:00
|
|
|
asmlinkage long do_syscall_trace_enter(struct pt_regs *regs);
|
|
|
|
asmlinkage void do_syscall_trace_exit(struct pt_regs *regs);
|
|
|
|
|
2011-12-27 18:27:18 +08:00
|
|
|
void do_protection_exception(struct pt_regs *regs);
|
|
|
|
void do_dat_exception(struct pt_regs *regs);
|
|
|
|
void do_asce_exception(struct pt_regs *regs);
|
2008-04-17 13:46:26 +08:00
|
|
|
|
2011-01-05 19:48:10 +08:00
|
|
|
void do_per_trap(struct pt_regs *regs);
|
2008-04-17 13:46:26 +08:00
|
|
|
void syscall_trace(struct pt_regs *regs, int entryexit);
|
|
|
|
void kernel_stack_overflow(struct pt_regs * regs);
|
|
|
|
void do_signal(struct pt_regs *regs);
|
|
|
|
int handle_signal32(unsigned long sig, struct k_sigaction *ka,
|
|
|
|
siginfo_t *info, sigset_t *oldset, struct pt_regs *regs);
|
2011-10-30 22:17:13 +08:00
|
|
|
void do_notify_resume(struct pt_regs *regs);
|
2008-04-17 13:46:26 +08:00
|
|
|
|
2010-10-25 22:10:38 +08:00
|
|
|
void do_extint(struct pt_regs *regs, unsigned int, unsigned int, unsigned long);
|
2011-10-30 22:17:13 +08:00
|
|
|
void do_restart(void);
|
2008-04-17 13:46:26 +08:00
|
|
|
void __init startup_init(void);
|
2011-12-27 18:27:18 +08:00
|
|
|
void die(struct pt_regs *regs, const char *str);
|
2008-04-17 13:46:26 +08:00
|
|
|
|
2011-10-30 22:17:13 +08:00
|
|
|
void __init time_init(void);
|
|
|
|
|
2010-03-11 07:21:15 +08:00
|
|
|
struct s390_mmap_arg_struct;
|
2008-04-17 13:46:26 +08:00
|
|
|
struct fadvise64_64_args;
|
|
|
|
struct old_sigaction;
|
|
|
|
|
2010-03-11 07:21:15 +08:00
|
|
|
long sys_mmap2(struct s390_mmap_arg_struct __user *arg);
|
2010-03-11 07:21:18 +08:00
|
|
|
long sys_s390_ipc(uint call, int first, unsigned long second,
|
2008-04-17 13:46:26 +08:00
|
|
|
unsigned long third, void __user *ptr);
|
2010-08-13 16:06:39 +08:00
|
|
|
long sys_s390_personality(unsigned int personality);
|
2009-01-14 21:14:36 +08:00
|
|
|
long sys_s390_fadvise64(int fd, u32 offset_high, u32 offset_low,
|
2008-04-17 13:46:26 +08:00
|
|
|
size_t len, int advice);
|
2009-01-14 21:14:36 +08:00
|
|
|
long sys_s390_fadvise64_64(struct fadvise64_64_args __user *args);
|
|
|
|
long sys_s390_fallocate(int fd, int mode, loff_t offset, u32 len_high,
|
|
|
|
u32 len_low);
|
2008-04-17 13:46:26 +08:00
|
|
|
long sys_fork(void);
|
2009-09-23 04:58:41 +08:00
|
|
|
long sys_clone(unsigned long newsp, unsigned long clone_flags,
|
|
|
|
int __user *parent_tidptr, int __user *child_tidptr);
|
2008-04-17 13:46:26 +08:00
|
|
|
long sys_vfork(void);
|
|
|
|
void execve_tail(void);
|
2010-08-24 15:26:20 +08:00
|
|
|
long sys_execve(const char __user *name, const char __user *const __user *argv,
|
|
|
|
const char __user *const __user *envp);
|
2009-01-14 21:14:36 +08:00
|
|
|
long sys_sigsuspend(int history0, int history1, old_sigset_t mask);
|
2008-04-17 13:46:26 +08:00
|
|
|
long sys_sigaction(int sig, const struct old_sigaction __user *act,
|
|
|
|
struct old_sigaction __user *oact);
|
|
|
|
long sys_sigaltstack(const stack_t __user *uss, stack_t __user *uoss);
|
|
|
|
long sys_sigreturn(void);
|
|
|
|
long sys_rt_sigreturn(void);
|
|
|
|
long sys32_sigreturn(void);
|
|
|
|
long sys32_rt_sigreturn(void);
|
|
|
|
|
|
|
|
#endif /* _ENTRY_H */
|