Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
a806170e HC |
2 | #ifndef _ENTRY_H |
3 | #define _ENTRY_H | |
4 | ||
521b00cd | 5 | #include <linux/percpu.h> |
a806170e HC |
6 | #include <linux/types.h> |
7 | #include <linux/signal.h> | |
8 | #include <asm/ptrace.h> | |
b5f87f15 | 9 | #include <asm/idle.h> |
638ad34a | 10 | |
638ad34a MS |
11 | extern void *restart_stack; |
12 | ||
8b646bd7 MS |
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); | |
8b646bd7 | 19 | |
56e62a73 SS |
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); | |
638ad34a | 23 | |
aa33c8cb MS |
24 | void do_protection_exception(struct pt_regs *regs); |
25 | void do_dat_exception(struct pt_regs *regs); | |
084ea4d6 VG |
26 | void do_secure_storage_access(struct pt_regs *regs); |
27 | void do_non_secure_storage_access(struct pt_regs *regs); | |
cd4d3d5f | 28 | void do_secure_storage_violation(struct pt_regs *regs); |
2a0a5b22 | 29 | void do_report_trap(struct pt_regs *regs, int si_signo, int si_code, char *str); |
a806170e HC |
30 | void kernel_stack_overflow(struct pt_regs * regs); |
31 | void do_signal(struct pt_regs *regs); | |
067bf2d4 RW |
32 | void handle_signal32(struct ksignal *ksig, sigset_t *oldset, |
33 | struct pt_regs *regs); | |
638ad34a | 34 | void do_notify_resume(struct pt_regs *regs); |
a806170e | 35 | |
63df41d6 | 36 | void __init init_IRQ(void); |
56e62a73 SS |
37 | void do_io_irq(struct pt_regs *regs); |
38 | void do_ext_irq(struct pt_regs *regs); | |
b44913fc | 39 | void do_restart(void *arg); |
a806170e | 40 | void __init startup_init(void); |
aa33c8cb | 41 | void die(struct pt_regs *regs, const char *str); |
63df41d6 | 42 | int setup_profiling_timer(unsigned int multiplier); |
638ad34a | 43 | void __init time_init(void); |
ec7bf478 | 44 | unsigned long prepare_ftrace_return(unsigned long parent, unsigned long sp, unsigned long ip); |
638ad34a | 45 | |
a4679373 | 46 | struct s390_mmap_arg_struct; |
a806170e HC |
47 | struct fadvise64_64_args; |
48 | struct old_sigaction; | |
a806170e | 49 | |
e0a50545 HC |
50 | long sys_rt_sigreturn(void); |
51 | long sys_sigreturn(void); | |
52 | ||
86d295e1 | 53 | long sys_s390_personality(unsigned int personality); |
00fcb149 | 54 | long sys_s390_runtime_instr(int command, int signum); |
916cda1a | 55 | long sys_s390_guarded_storage(int command, struct gs_cb __user *); |
4eafad7f AI |
56 | long sys_s390_pci_mmio_write(unsigned long, const void __user *, size_t); |
57 | long sys_s390_pci_mmio_read(unsigned long, void __user *, size_t); | |
3d8757b8 | 58 | long sys_s390_sthyi(unsigned long function_code, void __user *buffer, u64 __user *return_code, unsigned long flags); |
521b00cd HC |
59 | |
60 | DECLARE_PER_CPU(u64, mt_cycles[8]); | |
61 | ||
ce3dc447 MS |
62 | unsigned long stack_alloc(void); |
63 | void stack_free(unsigned long stack); | |
64 | ||
b61e1f32 HC |
65 | extern char kprobes_insn_page[]; |
66 | ||
c78d0c74 HC |
67 | extern char _samode31[], _eamode31[]; |
68 | extern char _stext_amode31[], _etext_amode31[]; | |
69 | extern struct exception_table_entry _start_amode31_ex_table[]; | |
70 | extern struct exception_table_entry _stop_amode31_ex_table[]; | |
6bda6670 | 71 | |
c78d0c74 HC |
72 | #define __amode31_data __section(".amode31.data") |
73 | #define __amode31_ref __section(".amode31.refs") | |
74 | extern long _start_amode31_refs[], _end_amode31_refs[]; | |
6bda6670 | 75 | |
a806170e | 76 | #endif /* _ENTRY_H */ |