Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Heiko Carstens | a806170 | 2008-04-17 07:46:26 +0200 | [diff] [blame] | 2 | #ifndef _ENTRY_H |
| 3 | #define _ENTRY_H |
| 4 | |
Heiko Carstens | 521b00c | 2016-05-07 12:15:21 +0200 | [diff] [blame] | 5 | #include <linux/percpu.h> |
Heiko Carstens | a806170 | 2008-04-17 07:46:26 +0200 | [diff] [blame] | 6 | #include <linux/types.h> |
| 7 | #include <linux/signal.h> |
| 8 | #include <asm/ptrace.h> |
Martin Schwidefsky | b5f87f1 | 2014-10-01 10:57:57 +0200 | [diff] [blame] | 9 | #include <asm/idle.h> |
Martin Schwidefsky | 638ad34 | 2011-10-30 15:17:13 +0100 | [diff] [blame] | 10 | |
Martin Schwidefsky | 638ad34 | 2011-10-30 15:17:13 +0100 | [diff] [blame] | 11 | extern void *restart_stack; |
| 12 | |
Martin Schwidefsky | 8b646bd | 2012-03-11 11:59:26 -0400 | [diff] [blame] | 13 | void system_call(void); |
| 14 | void pgm_check_handler(void); |
| 15 | void ext_int_handler(void); |
| 16 | void io_int_handler(void); |
| 17 | void mcck_int_handler(void); |
| 18 | void restart_int_handler(void); |
Martin Schwidefsky | 8b646bd | 2012-03-11 11:59:26 -0400 | [diff] [blame] | 19 | |
Sven Schnelle | 56e62a7 | 2020-11-21 11:14:56 +0100 | [diff] [blame^] | 20 | void __ret_from_fork(struct task_struct *prev, struct pt_regs *regs); |
| 21 | void __do_pgm_check(struct pt_regs *regs); |
| 22 | void __do_syscall(struct pt_regs *regs, int per_trap); |
Martin Schwidefsky | 638ad34 | 2011-10-30 15:17:13 +0100 | [diff] [blame] | 23 | |
Martin Schwidefsky | aa33c8c | 2011-12-27 11:27:18 +0100 | [diff] [blame] | 24 | void do_protection_exception(struct pt_regs *regs); |
| 25 | void do_dat_exception(struct pt_regs *regs); |
Vasily Gorbik | 084ea4d | 2020-01-21 09:43:10 +0100 | [diff] [blame] | 26 | void do_secure_storage_access(struct pt_regs *regs); |
| 27 | void do_non_secure_storage_access(struct pt_regs *regs); |
Janosch Frank | cd4d3d5 | 2020-09-08 09:05:04 -0400 | [diff] [blame] | 28 | void do_secure_storage_violation(struct pt_regs *regs); |
Heiko Carstens | a806170 | 2008-04-17 07:46:26 +0200 | [diff] [blame] | 29 | |
Heiko Carstens | b01a37a | 2012-10-18 18:10:06 +0200 | [diff] [blame] | 30 | void addressing_exception(struct pt_regs *regs); |
| 31 | void data_exception(struct pt_regs *regs); |
| 32 | void default_trap_handler(struct pt_regs *regs); |
| 33 | void divide_exception(struct pt_regs *regs); |
| 34 | void execute_exception(struct pt_regs *regs); |
| 35 | void hfp_divide_exception(struct pt_regs *regs); |
| 36 | void hfp_overflow_exception(struct pt_regs *regs); |
| 37 | void hfp_significance_exception(struct pt_regs *regs); |
| 38 | void hfp_sqrt_exception(struct pt_regs *regs); |
| 39 | void hfp_underflow_exception(struct pt_regs *regs); |
| 40 | void illegal_op(struct pt_regs *regs); |
| 41 | void operand_exception(struct pt_regs *regs); |
| 42 | void overflow_exception(struct pt_regs *regs); |
| 43 | void privileged_op(struct pt_regs *regs); |
| 44 | void space_switch_exception(struct pt_regs *regs); |
| 45 | void special_op_exception(struct pt_regs *regs); |
| 46 | void specification_exception(struct pt_regs *regs); |
| 47 | void transaction_exception(struct pt_regs *regs); |
| 48 | void translation_exception(struct pt_regs *regs); |
Martin Schwidefsky | 8070361 | 2014-10-06 17:53:53 +0200 | [diff] [blame] | 49 | void vector_exception(struct pt_regs *regs); |
Sven Schnelle | 17248ea | 2020-01-15 13:42:27 +0100 | [diff] [blame] | 50 | void monitor_event_exception(struct pt_regs *regs); |
Heiko Carstens | b01a37a | 2012-10-18 18:10:06 +0200 | [diff] [blame] | 51 | |
Jan Willeke | 2a0a5b2 | 2014-09-22 16:39:06 +0200 | [diff] [blame] | 52 | void do_report_trap(struct pt_regs *regs, int si_signo, int si_code, char *str); |
Heiko Carstens | a806170 | 2008-04-17 07:46:26 +0200 | [diff] [blame] | 53 | void kernel_stack_overflow(struct pt_regs * regs); |
| 54 | void do_signal(struct pt_regs *regs); |
Richard Weinberger | 067bf2d | 2014-07-13 22:21:03 +0200 | [diff] [blame] | 55 | void handle_signal32(struct ksignal *ksig, sigset_t *oldset, |
| 56 | struct pt_regs *regs); |
Martin Schwidefsky | 638ad34 | 2011-10-30 15:17:13 +0100 | [diff] [blame] | 57 | void do_notify_resume(struct pt_regs *regs); |
Heiko Carstens | a806170 | 2008-04-17 07:46:26 +0200 | [diff] [blame] | 58 | |
Heiko Carstens | 63df41d6 | 2013-09-06 19:10:48 +0200 | [diff] [blame] | 59 | void __init init_IRQ(void); |
Sven Schnelle | 56e62a7 | 2020-11-21 11:14:56 +0100 | [diff] [blame^] | 60 | void do_io_irq(struct pt_regs *regs); |
| 61 | void do_ext_irq(struct pt_regs *regs); |
Martin Schwidefsky | 638ad34 | 2011-10-30 15:17:13 +0100 | [diff] [blame] | 62 | void do_restart(void); |
Heiko Carstens | a806170 | 2008-04-17 07:46:26 +0200 | [diff] [blame] | 63 | void __init startup_init(void); |
Martin Schwidefsky | aa33c8c | 2011-12-27 11:27:18 +0100 | [diff] [blame] | 64 | void die(struct pt_regs *regs, const char *str); |
Heiko Carstens | 63df41d6 | 2013-09-06 19:10:48 +0200 | [diff] [blame] | 65 | int setup_profiling_timer(unsigned int multiplier); |
Martin Schwidefsky | 638ad34 | 2011-10-30 15:17:13 +0100 | [diff] [blame] | 66 | void __init time_init(void); |
Martin Schwidefsky | ec7bf47 | 2019-02-18 16:51:28 +0100 | [diff] [blame] | 67 | unsigned long prepare_ftrace_return(unsigned long parent, unsigned long sp, unsigned long ip); |
Martin Schwidefsky | 638ad34 | 2011-10-30 15:17:13 +0100 | [diff] [blame] | 68 | |
Christoph Hellwig | a467937 | 2010-03-10 15:21:15 -0800 | [diff] [blame] | 69 | struct s390_mmap_arg_struct; |
Heiko Carstens | a806170 | 2008-04-17 07:46:26 +0200 | [diff] [blame] | 70 | struct fadvise64_64_args; |
| 71 | struct old_sigaction; |
Heiko Carstens | a806170 | 2008-04-17 07:46:26 +0200 | [diff] [blame] | 72 | |
Heiko Carstens | e0a5054 | 2014-12-12 13:11:08 +0100 | [diff] [blame] | 73 | long sys_rt_sigreturn(void); |
| 74 | long sys_sigreturn(void); |
| 75 | |
Heiko Carstens | 86d295e | 2014-02-27 15:16:04 +0100 | [diff] [blame] | 76 | long sys_s390_personality(unsigned int personality); |
Heiko Carstens | 00fcb149 | 2014-03-01 12:18:46 +0100 | [diff] [blame] | 77 | long sys_s390_runtime_instr(int command, int signum); |
Martin Schwidefsky | 916cda1 | 2016-01-26 14:10:34 +0100 | [diff] [blame] | 78 | long sys_s390_guarded_storage(int command, struct gs_cb __user *); |
Alexey Ishchuk | 4eafad7 | 2014-11-14 14:27:58 +0100 | [diff] [blame] | 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); |
QingFeng Hao | 3d8757b | 2017-09-29 12:41:52 +0200 | [diff] [blame] | 81 | long sys_s390_sthyi(unsigned long function_code, void __user *buffer, u64 __user *return_code, unsigned long flags); |
Heiko Carstens | 521b00c | 2016-05-07 12:15:21 +0200 | [diff] [blame] | 82 | |
| 83 | DECLARE_PER_CPU(u64, mt_cycles[8]); |
| 84 | |
Martin Schwidefsky | ce3dc44 | 2017-09-12 16:37:33 +0200 | [diff] [blame] | 85 | unsigned long stack_alloc(void); |
| 86 | void stack_free(unsigned long stack); |
| 87 | |
Heiko Carstens | b61e1f3 | 2020-09-18 10:26:19 +0200 | [diff] [blame] | 88 | extern char kprobes_insn_page[]; |
| 89 | |
Heiko Carstens | a806170 | 2008-04-17 07:46:26 +0200 | [diff] [blame] | 90 | #endif /* _ENTRY_H */ |