Lines Matching defs:regs
181 dtrace_getreg(struct regs *savearea, uint_t reg)
184 x86_saved_state_t *regs = (x86_saved_state_t *)savearea;
195 return (uint64_t)(regs->ss_64.rdi);
197 return (uint64_t)(regs->ss_64.rsi);
199 return (uint64_t)(regs->ss_64.rdx);
201 return (uint64_t)(regs->ss_64.rcx);
203 return (uint64_t)(regs->ss_64.r8);
205 return (uint64_t)(regs->ss_64.r9);
207 return (uint64_t)(regs->ss_64.rax);
209 return (uint64_t)(regs->ss_64.rbx);
211 return (uint64_t)(regs->ss_64.rbp);
213 return (uint64_t)(regs->ss_64.r10);
215 return (uint64_t)(regs->ss_64.r11);
217 return (uint64_t)(regs->ss_64.r12);
219 return (uint64_t)(regs->ss_64.r13);
221 return (uint64_t)(regs->ss_64.r14);
223 return (uint64_t)(regs->ss_64.r15);
225 return (uint64_t)(regs->ss_64.fs);
227 return (uint64_t)(regs->ss_64.gs);
229 return (uint64_t)(regs->ss_64.isf.trapno);
231 return (uint64_t)(regs->ss_64.isf.err);
233 return (uint64_t)(regs->ss_64.isf.rip);
235 return (uint64_t)(regs->ss_64.isf.cs);
237 return (uint64_t)(regs->ss_64.isf.ss);
239 return (uint64_t)(regs->ss_64.isf.rflags);
241 return (uint64_t)(regs->ss_64.isf.rsp);
255 return (uint64_t)((unsigned int *)(&(regs->ss_32.gs)))[reg];
415 x86_saved_state_t *regs;
435 regs = (x86_saved_state_t *)find_user_regs(thread);
436 if (regs == NULL)
446 pc = regs->ss_64.isf.rip;
447 sp = regs->ss_64.isf.rsp;
448 fp = regs->ss_64.rbp;
450 pc = regs->ss_32.eip;
451 sp = regs->ss_32.uesp;
452 fp = regs->ss_32.ebp;
487 x86_saved_state_t *regs;
499 regs = (x86_saved_state_t *)find_user_regs(thread);
500 if (regs == NULL)
504 pc = regs->ss_64.isf.rip;
505 sp = regs->ss_64.isf.rsp;
506 fp = regs->ss_64.rbp;
508 pc = regs->ss_32.eip;
509 sp = regs->ss_32.uesp;
510 fp = regs->ss_32.ebp;
540 savearea_t *regs;
562 regs = (savearea_t *)find_user_regs(thread);
563 if (regs == NULL)
572 pc = regs->ss_32.eip;
573 sp = regs->ss_32.ebp;