Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | #ifndef _ENTRY_H |
| 3 | #define _ENTRY_H |
| 4 | |
| 5 | #include <linux/percpu.h> |
| 6 | #include <linux/types.h> |
| 7 | #include <linux/signal.h> |
| 8 | #include <asm/ptrace.h> |
| 9 | #include <asm/idle.h> |
| 10 | |
| 11 | extern void *restart_stack; |
| 12 | extern unsigned long suspend_zero_pages; |
| 13 | |
| 14 | void system_call(void); |
| 15 | void pgm_check_handler(void); |
| 16 | void ext_int_handler(void); |
| 17 | void io_int_handler(void); |
| 18 | void mcck_int_handler(void); |
| 19 | void restart_int_handler(void); |
| 20 | void restart_call_handler(void); |
| 21 | |
| 22 | asmlinkage long do_syscall_trace_enter(struct pt_regs *regs); |
| 23 | asmlinkage void do_syscall_trace_exit(struct pt_regs *regs); |
| 24 | |
| 25 | void do_protection_exception(struct pt_regs *regs); |
| 26 | void do_dat_exception(struct pt_regs *regs); |
| 27 | |
| 28 | void addressing_exception(struct pt_regs *regs); |
| 29 | void data_exception(struct pt_regs *regs); |
| 30 | void default_trap_handler(struct pt_regs *regs); |
| 31 | void divide_exception(struct pt_regs *regs); |
| 32 | void execute_exception(struct pt_regs *regs); |
| 33 | void hfp_divide_exception(struct pt_regs *regs); |
| 34 | void hfp_overflow_exception(struct pt_regs *regs); |
| 35 | void hfp_significance_exception(struct pt_regs *regs); |
| 36 | void hfp_sqrt_exception(struct pt_regs *regs); |
| 37 | void hfp_underflow_exception(struct pt_regs *regs); |
| 38 | void illegal_op(struct pt_regs *regs); |
| 39 | void operand_exception(struct pt_regs *regs); |
| 40 | void overflow_exception(struct pt_regs *regs); |
| 41 | void privileged_op(struct pt_regs *regs); |
| 42 | void space_switch_exception(struct pt_regs *regs); |
| 43 | void special_op_exception(struct pt_regs *regs); |
| 44 | void specification_exception(struct pt_regs *regs); |
| 45 | void transaction_exception(struct pt_regs *regs); |
| 46 | void translation_exception(struct pt_regs *regs); |
| 47 | void vector_exception(struct pt_regs *regs); |
| 48 | |
| 49 | void do_per_trap(struct pt_regs *regs); |
| 50 | void do_report_trap(struct pt_regs *regs, int si_signo, int si_code, char *str); |
| 51 | void syscall_trace(struct pt_regs *regs, int entryexit); |
| 52 | void kernel_stack_overflow(struct pt_regs * regs); |
| 53 | void do_signal(struct pt_regs *regs); |
| 54 | void handle_signal32(struct ksignal *ksig, sigset_t *oldset, |
| 55 | struct pt_regs *regs); |
| 56 | void do_notify_resume(struct pt_regs *regs); |
| 57 | |
| 58 | void __init init_IRQ(void); |
| 59 | void do_IRQ(struct pt_regs *regs, int irq); |
| 60 | void do_restart(void); |
| 61 | void __init startup_init_nobss(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); |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 66 | void s390_early_resume(void); |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 67 | unsigned long prepare_ftrace_return(unsigned long parent, unsigned long sp, unsigned long ip); |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 68 | |
| 69 | struct s390_mmap_arg_struct; |
| 70 | struct fadvise64_64_args; |
| 71 | struct old_sigaction; |
| 72 | |
| 73 | long sys_rt_sigreturn(void); |
| 74 | long sys_sigreturn(void); |
| 75 | |
| 76 | long sys_s390_personality(unsigned int personality); |
| 77 | long sys_s390_runtime_instr(int command, int signum); |
| 78 | long sys_s390_guarded_storage(int command, struct gs_cb __user *); |
| 79 | long sys_s390_pci_mmio_write(unsigned long, const void __user *, size_t); |
| 80 | long sys_s390_pci_mmio_read(unsigned long, void __user *, size_t); |
| 81 | long sys_s390_sthyi(unsigned long function_code, void __user *buffer, u64 __user *return_code, unsigned long flags); |
| 82 | |
| 83 | DECLARE_PER_CPU(u64, mt_cycles[8]); |
| 84 | |
| 85 | void gs_load_bc_cb(struct pt_regs *regs); |
| 86 | void set_fs_fixup(void); |
| 87 | |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 88 | unsigned long stack_alloc(void); |
| 89 | void stack_free(unsigned long stack); |
| 90 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 91 | #endif /* _ENTRY_H */ |