Home
last modified time | relevance | path

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

12

/linux-6.1.9/arch/x86/mm/
Dextable.c98 struct pt_regs *regs, int trapnr) in ex_handler_fault() argument
100 regs->ax = trapnr; in ex_handler_fault()
105 struct pt_regs *regs, int trapnr) in ex_handler_sgx() argument
107 regs->ax = trapnr | SGX_ENCLS_FAULT_FLAG; in ex_handler_sgx()
134 struct pt_regs *regs, int trapnr) in ex_handler_uaccess() argument
136 …WARN_ONCE(trapnr == X86_TRAP_GP, "General protection fault in user access. Non-canonical address?"… in ex_handler_uaccess()
141 struct pt_regs *regs, int trapnr) in ex_handler_copy() argument
143 …WARN_ONCE(trapnr == X86_TRAP_GP, "General protection fault in user access. Non-canonical address?"… in ex_handler_copy()
144 return ex_handler_fault(fixup, regs, trapnr); in ex_handler_copy()
192 struct pt_regs *regs, int trapnr, int reg, int imm) in ex_handler_ucopy_len() argument
[all …]
/linux-6.1.9/arch/x86/kernel/
Dtraps.c105 do_trap_no_signal(struct task_struct *tsk, int trapnr, const char *str, in do_trap_no_signal() argument
113 if (trapnr < X86_TRAP_UD) { in do_trap_no_signal()
115 error_code, trapnr)) in do_trap_no_signal()
119 if (fixup_exception(regs, trapnr, error_code, 0)) in do_trap_no_signal()
123 tsk->thread.trap_nr = trapnr; in do_trap_no_signal()
126 if (fixup_vdso_exception(regs, trapnr, error_code, 0)) in do_trap_no_signal()
140 tsk->thread.trap_nr = trapnr; in do_trap_no_signal()
160 do_trap(int trapnr, int signr, char *str, struct pt_regs *regs, in do_trap() argument
165 if (!do_trap_no_signal(tsk, trapnr, str, regs, error_code)) in do_trap()
178 unsigned long trapnr, int signr, int sicode, void __user *addr) in do_error_trap() argument
[all …]
Dhead64.c411 void __init do_early_exception(struct pt_regs *regs, int trapnr) in do_early_exception() argument
413 if (trapnr == X86_TRAP_PF && in do_early_exception()
418 trapnr == X86_TRAP_VC && handle_vc_boot_ghcb(regs)) in do_early_exception()
421 if (trapnr == X86_TRAP_VE && tdx_early_handle_ve(regs)) in do_early_exception()
424 early_fixup_exception(regs, trapnr); in do_early_exception()
Dkgdb.c483 kgdb_arch_handle_exception(args->trapnr, args->signr, in single_step_cont()
548 if (kgdb_handle_exception(args->trapnr, args->signr, cmd, regs)) in __kgdb_notify()
563 .trapnr = trap, in kgdb_ll_trap()
/linux-6.1.9/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-6.1.9/arch/x86/include/asm/
Dextable.h38 extern int fixup_exception(struct pt_regs *regs, int trapnr,
40 extern int fixup_bug(struct pt_regs *regs, int trapnr);
42 extern void early_fixup_exception(struct pt_regs *regs, int trapnr);
Dsgx.h396 int *trapnr);
398 void __user *secs, u64 *lepubkeyhash, int *trapnr);
Dvdso.h52 extern bool fixup_vdso_exception(struct pt_regs *regs, int trapnr,
Dkprobes.h115 extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
Dsetup.h55 extern void __init do_early_exception(struct pt_regs *regs, int trapnr);
/linux-6.1.9/arch/x86/kvm/vmx/
Dsgx.c103 static int sgx_inject_fault(struct kvm_vcpu *vcpu, gva_t gva, int trapnr) in sgx_inject_fault() argument
112 if (trapnr == PF_VECTOR && !boot_cpu_has(X86_FEATURE_SGX2)) { in sgx_inject_fault()
123 if ((trapnr == PF_VECTOR || !boot_cpu_has(X86_FEATURE_SGX2)) && in sgx_inject_fault()
149 int trapnr, ret; in __handle_encls_ecreate() local
199 ret = sgx_virt_ecreate(pageinfo, (void __user *)secs_hva, &trapnr); in __handle_encls_ecreate()
203 return sgx_inject_fault(vcpu, secs_gva, trapnr); in __handle_encls_ecreate()
294 int ret, trapnr; in handle_encls_einit() local
323 vmx->msr_ia32_sgxlepubkeyhash, &trapnr); in handle_encls_einit()
326 return sgx_inject_fault(vcpu, secs_gva, trapnr); in handle_encls_einit()
/linux-6.1.9/arch/x86/kernel/cpu/sgx/
Dvirt.c332 int *trapnr) in sgx_virt_ecreate() argument
355 *trapnr = ENCLS_TRAPNR(ret); in sgx_virt_ecreate()
406 void __user *secs, u64 *lepubkeyhash, int *trapnr) in sgx_virt_einit() argument
426 *trapnr = ENCLS_TRAPNR(ret); in sgx_virt_einit()
/linux-6.1.9/arch/s390/kernel/
Dtraps.c297 unsigned int trapnr; in __do_pgm_check() local
339 trapnr = regs->int_code & PGM_INT_CODE_MASK; in __do_pgm_check()
340 if (trapnr) in __do_pgm_check()
341 pgm_check_table[trapnr](regs); in __do_pgm_check()
Dkprobes.c457 static int kprobe_trap_handler(struct pt_regs *regs, int trapnr) in kprobe_trap_handler() argument
496 int kprobe_fault_handler(struct pt_regs *regs, int trapnr) in kprobe_fault_handler() argument
502 ret = kprobe_trap_handler(regs, trapnr); in kprobe_fault_handler()
533 kprobe_trap_handler(regs, args->trapnr)) in kprobe_exceptions_notify()
/linux-6.1.9/include/linux/
Dkdebug.h13 int trapnr; member
/linux-6.1.9/arch/riscv/include/asm/
Dkprobes.h40 int kprobe_fault_handler(struct pt_regs *regs, unsigned int trapnr);
/linux-6.1.9/arch/csky/include/asm/
Dkprobes.h41 int kprobe_fault_handler(struct pt_regs *regs, unsigned int trapnr);
/linux-6.1.9/arch/parisc/include/asm/
Dkprobes.h54 static inline int kprobe_fault_handler(struct pt_regs *regs, int trapnr) in kprobe_fault_handler() argument
/linux-6.1.9/arch/sh/include/asm/
Dkprobes.h48 extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
/linux-6.1.9/arch/mips/include/asm/
Dkprobes.h44 int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
/linux-6.1.9/arch/sparc/include/asm/
Dkprobes.h52 int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
/linux-6.1.9/arch/s390/include/asm/
Dkprobes.h76 int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
/linux-6.1.9/arch/powerpc/include/asm/
Dkprobes.h89 extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
/linux-6.1.9/arch/ia64/include/asm/
Dkprobes.h109 extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
/linux-6.1.9/arch/mips/kernel/
Dkprobes.c408 int kprobe_fault_handler(struct pt_regs *regs, int trapnr) in kprobe_fault_handler() argument
448 && kprobe_fault_handler(args->regs, args->trapnr)) in kprobe_exceptions_notify()

12