Lines Matching defs:regs
147 x86_saved_state64_t *regs;
149 regs = USER_REGS64(thr_act);
151 code = (int) (regs->rax & SYSCALL_NUMBER_MASK);
152 is_mach = (regs->rax & SYSCALL_CLASS_MASK)
160 regs->rax = ret;
172 x86_saved_state32_t *regs;
174 regs = USER_REGS32(thr_act);
176 code = ((int) regs->eax);
184 regs->eax = ret;
803 panic_trap(x86_saved_state32_t *regs)
816 kprintf("panic trap number 0x%x, eip 0x%x\n", regs->trapno, regs->eip);
820 if (regs->trapno < TRAP_TYPES)
821 trapname = trap_type[regs->trapno];
829 regs->eip, regs->trapno, trapname, cr0, cr2, cr3, cr4,
830 regs->eax,regs->ebx,regs->ecx,regs->edx,
831 regs->cr2,regs->ebp,regs->esi,regs->edi,
832 regs->efl,regs->eip,regs->cs & 0xFFFF, regs->ds & 0xFFFF, regs->err,
845 panic_trap(x86_saved_state64_t *regs)
853 current_cpu_datap()->cpu_fatal_trap_state = regs;
861 regs->isf.trapno, regs->isf.rip);
865 if (regs->isf.trapno < TRAP_TYPES)
866 trapname = trap_type[regs->isf.trapno];
868 if ((regs->isf.trapno == T_PAGE_FAULT) && (regs->isf.err == (T_PF_PROT | T_PF_EXECUTE)) && (regs->isf.rip == regs->cr2)) {
869 if (pmap_smep_enabled && (regs->isf.rip < VM_MAX_USER_PAGE_ADDRESS)) {
871 } else if (regs->isf.rip >= VM_MIN_KERNEL_AND_KEXT_ADDRESS) {
885 regs->isf.rip, regs->isf.trapno, trapname,
887 regs->rax, regs->rbx, regs->rcx, regs->rdx,
888 regs->isf.rsp, regs->rbp, regs->rsi, regs->rdi,
889 regs->r8, regs->r9, regs->r10, regs->r11,
890 regs->r12, regs->r13, regs->r14, regs->r15,
891 regs->isf.rflags, regs->isf.rip, regs->isf.cs & 0xFFFF,
892 regs->isf.ss & 0xFFFF,regs->cr2, regs->isf.err, regs->isf.cpu,
933 x86_saved_state64_t *regs;
935 regs = saved_state64(saved_state);
938 regs->isf.cpu = cpu_number();
940 type = regs->isf.trapno;
941 err = (int)regs->isf.err & 0xffff;
942 vaddr = (user_addr_t)regs->cr2;
943 rip = (user_addr_t)regs->isf.rip;
945 x86_saved_state32_t *regs;
947 regs = saved_state32(saved_state);
950 regs->cpu = cpu_number();
952 type = regs->trapno;
953 err = regs->err & 0xffff;
954 vaddr = (user_addr_t)regs->cr2;
955 rip = (user_addr_t)regs->eip;
1236 x86_saved_state32_t *regs = saved_state32(saved_state);
1238 x86_saved_state64_t *regs = saved_state64(saved_state);
1245 if (regs == USER_REGS32(current_thread()))
1248 iks->k_ebx = regs->ebx;
1249 iks->k_esp = (int)regs;
1250 iks->k_ebp = regs->ebp;
1251 iks->k_edi = regs->edi;
1252 iks->k_esi = regs->esi;
1253 iks->k_eip = regs->eip;
1256 if (regs == USER_REGS64(current_thread()))
1259 iks->k_rbx = regs->rbx;
1260 iks->k_rsp = regs->isf.rsp;
1261 iks->k_rbp = regs->rbp;
1262 iks->k_r12 = regs->r12;
1263 iks->k_r13 = regs->r13;
1264 iks->k_r14 = regs->r14;
1265 iks->k_r15 = regs->r15;
1266 iks->k_rip = regs->isf.rip;