Lines Matching defs:regs

251 	x86_saved_state32_t	*regs;
254 regs = saved_state32(state);
256 trapno = regs->eax;
258 kprintf("machdep_syscall(0x%08x) code=%d\n", regs, trapno);
265 regs->eax = (unsigned int)kern_invalid(NULL);
274 if (copyin((user_addr_t) regs->uesp + sizeof (int),
276 regs->eax = KERN_INVALID_ADDRESS;
284 regs->eax = (*entry->routine.args_0)();
287 regs->eax = (*entry->routine.args_1)(args[0]);
290 regs->eax = (*entry->routine.args_2)(args[0],args[1]);
294 regs->eax = (*entry->routine.args_3)(args[0],args[1],args[2]);
301 regs->eax = error;
302 regs->efl |= EFL_CF; /* carry bit */
304 regs->eax = rval;
305 regs->efl &= ~EFL_CF;
310 regs->eax = (*entry->routine.args_4)(args[0], args[1], args[2], args[3]);
319 DEBUG_KPRINT_SYSCALL_MDEP("machdep_syscall: retval=%u\n", regs->eax);
333 x86_saved_state64_t *regs;
336 regs = saved_state64(state);
338 trapno = (int)(regs->rax & SYSCALL_NUMBER_MASK);
344 regs->rax = (unsigned int)kern_invalid(NULL);
353 regs->rax = (*entry->routine.args_0)();
356 regs->rax = (*entry->routine.args64_1)(regs->rdi);
364 DEBUG_KPRINT_SYSCALL_MDEP("machdep_syscall: retval=%llu\n", regs->rax);
450 x86_saved_state32_t *regs;
453 regs = saved_state32(state);
455 call_number = -(regs->eax);
461 kprintf("mach_call_munger(0x%08x) code=%d\n", regs, call_number);
472 "mach_call_munger: kern_invalid 0x%x\n", regs->eax);
479 retval = mach_call_arg_munger32(regs->uesp, argc, call_number, &args);
481 regs->eax = retval;
507 regs->eax = retval;
516 __private_extern__ void mach_call_munger64(x86_saved_state_t *regs);
524 x86_saved_state64_t *regs;
527 regs = saved_state64(state);
529 call_number = (int)(regs->rax & SYSCALL_NUMBER_MASK);
537 regs->rdi, regs->rsi, regs->rdx, regs->r10, 0);
540 i386_exception(EXC_SYSCALL, regs->rax, 1);
546 i386_exception(EXC_SYSCALL, regs->rax, 1);
556 if (copyin((user_addr_t)(regs->isf.rsp + sizeof(user_addr_t)), (char *)&regs->v_arg6, copyin_count)) {
557 regs->rax = KERN_INVALID_ARGUMENT;
568 regs->rax = (uint64_t)mach_call((void *)(&regs->rdi));
570 DEBUG_KPRINT_SYSCALL_MACH( "mach_call_munger64: retval=0x%llx\n", regs->rax);
574 regs->rax, 0, 0, 0, 0);