Home
last modified time | relevance | path

Searched refs:trapno (Results 1 – 10 of 10) sorted by relevance

/arch/metag/mm/
Dfault.c20 unsigned int trapno) in clear_cbuf_entry() argument
24 switch (trapno) { in clear_cbuf_entry()
49 unsigned int write_access, unsigned int trapno) in do_page_fault() argument
186 info.si_trapno = trapno; in do_page_fault()
194 write_access, trapno, trap_name(trapno)); in do_page_fault()
216 info.si_trapno = trapno; in do_page_fault()
239 clear_cbuf_entry(regs, address, trapno); in do_page_fault()
243 die("Oops", regs, (write_access << 15) | trapno, address); in do_page_fault()
/arch/metag/kernel/
Dtraps.c81 const char *trap_name(int trapno) in trap_name() argument
83 if (trapno >= 0 && trapno < ARRAY_SIZE(trap_names) in trap_name()
84 && trap_names[trapno]) in trap_name()
85 return trap_names[trapno]; in trap_name()
496 int signo, int code, int trapno) in unhandled_fault() argument
506 trapno, trap_name(trapno)); in unhandled_fault()
517 info.si_trapno = trapno; in unhandled_fault()
520 die("Oops", regs, trapno, addr); in unhandled_fault()
525 unsigned int data_address, int trapno) in handle_data_fault() argument
529 ret = do_page_fault(regs, data_address, !load_fault(pcbuf), trapno); in handle_data_fault()
/arch/x86/include/uapi/asm/
Dsigcontext.h214 __u32 trapno; member
261 __u64 trapno; member
312 __u32 trapno; member
376 __u64 trapno; member
/arch/metag/include/asm/
Dbug.h8 extern const char *trap_name(int trapno);
Dtraps.h41 unsigned int write_access, unsigned int trapno);
/arch/x86/kernel/
Dvm86_32.c562 int handle_vm86_trap(struct kernel_vm86_regs *regs, long error_code, int trapno) in handle_vm86_trap() argument
567 if ((trapno == 3) || (trapno == 1)) { in handle_vm86_trap()
568 save_v86_state(regs, VM86_TRAP + (trapno << 8)); in handle_vm86_trap()
571 do_int(regs, trapno, (unsigned char __user *) (regs->pt.ss << 4), SP(regs)); in handle_vm86_trap()
574 if (trapno != 1) in handle_vm86_trap()
576 current->thread.trap_nr = trapno; in handle_vm86_trap()
Dsignal.c190 put_user_ex(current->thread.trap_nr, &sc->trapno); in setup_sigcontext()
/arch/m32r/kernel/
Dptrace.c309 unsigned long trapno; in compute_next_pc_for_16bit_insn()
310 trapno = insn & 0xf; in compute_next_pc_for_16bit_insn()
316 *next_pc = evb + (trapno << 2); in compute_next_pc_for_16bit_insn()
/arch/x86/ia32/
Dia32_signal.c193 put_user_ex(current->thread.trap_nr, &sc->trapno); in ia32_setup_sigcontext()
/arch/x86/um/
Dsignal.c274 sc.trapno = fi->trap_no; in copy_sc_to_user()