Home
last modified time | relevance | path

Searched refs:trapnr (Results 1 – 25 of 47) sorted by relevance

12

/Linux-v5.15/arch/x86/mm/
Dextable.c28 struct pt_regs *regs, int trapnr, in ex_handler_default() argument
38 struct pt_regs *regs, int trapnr, in ex_handler_fault() argument
43 regs->ax = trapnr; in ex_handler_fault()
59 struct pt_regs *regs, int trapnr, in ex_handler_fprestore() argument
74 struct pt_regs *regs, int trapnr, in ex_handler_uaccess() argument
78 …WARN_ONCE(trapnr == X86_TRAP_GP, "General protection fault in user access. Non-canonical address?"… in ex_handler_uaccess()
85 struct pt_regs *regs, int trapnr, in ex_handler_copy() argument
89 …WARN_ONCE(trapnr == X86_TRAP_GP, "General protection fault in user access. Non-canonical address?"… in ex_handler_copy()
91 regs->ax = trapnr; in ex_handler_copy()
97 struct pt_regs *regs, int trapnr, in ex_handler_rdmsr_unsafe() argument
[all …]
/Linux-v5.15/arch/x86/kernel/
Dtraps.c101 do_trap_no_signal(struct task_struct *tsk, int trapnr, const char *str, in do_trap_no_signal() argument
109 if (trapnr < X86_TRAP_UD) { in do_trap_no_signal()
111 error_code, trapnr)) in do_trap_no_signal()
115 if (fixup_exception(regs, trapnr, error_code, 0)) in do_trap_no_signal()
119 tsk->thread.trap_nr = trapnr; in do_trap_no_signal()
122 if (fixup_vdso_exception(regs, trapnr, error_code, 0)) in do_trap_no_signal()
136 tsk->thread.trap_nr = trapnr; in do_trap_no_signal()
156 do_trap(int trapnr, int signr, char *str, struct pt_regs *regs, in do_trap() argument
161 if (!do_trap_no_signal(tsk, trapnr, str, regs, error_code)) in do_trap()
174 unsigned long trapnr, int signr, int sicode, void __user *addr) in do_error_trap() argument
[all …]
Dhead64.c402 void __init do_early_exception(struct pt_regs *regs, int trapnr) in do_early_exception() argument
404 if (trapnr == X86_TRAP_PF && in do_early_exception()
409 trapnr == X86_TRAP_VC && handle_vc_boot_ghcb(regs)) in do_early_exception()
412 early_fixup_exception(regs, trapnr); in do_early_exception()
Dsev.c100 void do_early_exception(struct pt_regs *regs, int trapnr);
244 void do_early_exception(struct pt_regs *regs, int trapnr);
801 int trapnr = ctxt->fi.vector; in vc_early_forward_exception() local
803 if (trapnr == X86_TRAP_PF) in vc_early_forward_exception()
807 do_early_exception(ctxt->regs, trapnr); in vc_early_forward_exception()
1298 int trapnr = ctxt->fi.vector; in vc_forward_exception() local
1302 switch (trapnr) { in vc_forward_exception()
/Linux-v5.15/arch/x86/entry/vdso/
Dextable.c12 bool fixup_vdso_exception(struct pt_regs *regs, int trapnr, in fixup_vdso_exception() argument
25 if (trapnr == X86_TRAP_DB || trapnr == X86_TRAP_BP) in fixup_vdso_exception()
38 regs->di = trapnr; in fixup_vdso_exception()
/Linux-v5.15/arch/x86/include/asm/
Dextable.h39 extern int fixup_exception(struct pt_regs *regs, int trapnr,
41 extern int fixup_bug(struct pt_regs *regs, int trapnr);
43 extern void early_fixup_exception(struct pt_regs *regs, int trapnr);
Dsgx.h370 int *trapnr);
372 void __user *secs, u64 *lepubkeyhash, int *trapnr);
Dvdso.h52 extern bool fixup_vdso_exception(struct pt_regs *regs, int trapnr,
Dsetup.h55 extern void __init do_early_exception(struct pt_regs *regs, int trapnr);
Dkprobes.h118 extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
/Linux-v5.15/arch/x86/kvm/vmx/
Dsgx.c105 static int sgx_inject_fault(struct kvm_vcpu *vcpu, gva_t gva, int trapnr) in sgx_inject_fault() argument
114 if (trapnr == PF_VECTOR && !boot_cpu_has(X86_FEATURE_SGX2)) { in sgx_inject_fault()
127 if ((trapnr == PF_VECTOR || !boot_cpu_has(X86_FEATURE_SGX2)) && in sgx_inject_fault()
153 int trapnr, ret; in __handle_encls_ecreate() local
203 ret = sgx_virt_ecreate(pageinfo, (void __user *)secs_hva, &trapnr); in __handle_encls_ecreate()
207 return sgx_inject_fault(vcpu, secs_gva, trapnr); in __handle_encls_ecreate()
298 int ret, trapnr; in handle_encls_einit() local
327 vmx->msr_ia32_sgxlepubkeyhash, &trapnr); in handle_encls_einit()
330 return sgx_inject_fault(vcpu, secs_gva, trapnr); in handle_encls_einit()
/Linux-v5.15/arch/x86/kernel/cpu/sgx/
Dvirt.c277 int *trapnr) in sgx_virt_ecreate() argument
300 *trapnr = ENCLS_TRAPNR(ret); in sgx_virt_ecreate()
351 void __user *secs, u64 *lepubkeyhash, int *trapnr) in sgx_virt_einit() argument
371 *trapnr = ENCLS_TRAPNR(ret); in sgx_virt_einit()
/Linux-v5.15/arch/s390/kernel/
Dtraps.c304 unsigned int trapnr; in __do_pgm_check() local
345 trapnr = regs->int_code & PGM_INT_CODE_MASK; in __do_pgm_check()
346 if (trapnr) in __do_pgm_check()
347 pgm_check_table[trapnr](regs); in __do_pgm_check()
Dkprobes.c416 static int kprobe_trap_handler(struct pt_regs *regs, int trapnr) in kprobe_trap_handler() argument
458 int kprobe_fault_handler(struct pt_regs *regs, int trapnr) in kprobe_fault_handler() argument
464 ret = kprobe_trap_handler(regs, trapnr); in kprobe_fault_handler()
495 kprobe_trap_handler(regs, args->trapnr)) in kprobe_exceptions_notify()
/Linux-v5.15/arch/x86/kernel/cpu/mce/
Dinternal.h190 struct pt_regs *regs, int trapnr,
195 struct pt_regs *regs, int trapnr,
/Linux-v5.15/include/linux/
Dkdebug.h13 int trapnr; member
/Linux-v5.15/arch/riscv/include/asm/
Dkprobes.h40 int kprobe_fault_handler(struct pt_regs *regs, unsigned int trapnr);
/Linux-v5.15/arch/csky/include/asm/
Dkprobes.h41 int kprobe_fault_handler(struct pt_regs *regs, unsigned int trapnr);
/Linux-v5.15/arch/parisc/include/asm/
Dkprobes.h53 static inline int kprobe_fault_handler(struct pt_regs *regs, int trapnr) in kprobe_fault_handler() argument
/Linux-v5.15/arch/sh/include/asm/
Dkprobes.h48 extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
/Linux-v5.15/arch/sparc/include/asm/
Dkprobes.h52 int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
/Linux-v5.15/arch/mips/include/asm/
Dkprobes.h44 int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
/Linux-v5.15/arch/s390/include/asm/
Dkprobes.h75 int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
/Linux-v5.15/arch/powerpc/include/asm/
Dkprobes.h89 extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
/Linux-v5.15/arch/ia64/include/asm/
Dkprobes.h109 extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr);

12