Lines Matching refs:grp
444 getgregs(klwp_t *lwp, gregset_t grp) in getgregs() argument
451 grp[REG_RDI] = rp->r_rdi; in getgregs()
452 grp[REG_RSI] = rp->r_rsi; in getgregs()
453 grp[REG_RDX] = rp->r_rdx; in getgregs()
454 grp[REG_RCX] = rp->r_rcx; in getgregs()
455 grp[REG_R8] = rp->r_r8; in getgregs()
456 grp[REG_R9] = rp->r_r9; in getgregs()
457 grp[REG_RAX] = rp->r_rax; in getgregs()
458 grp[REG_RBX] = rp->r_rbx; in getgregs()
459 grp[REG_RBP] = rp->r_rbp; in getgregs()
460 grp[REG_R10] = rp->r_r10; in getgregs()
461 grp[REG_R11] = rp->r_r11; in getgregs()
462 grp[REG_R12] = rp->r_r12; in getgregs()
463 grp[REG_R13] = rp->r_r13; in getgregs()
464 grp[REG_R14] = rp->r_r14; in getgregs()
465 grp[REG_R15] = rp->r_r15; in getgregs()
466 grp[REG_FSBASE] = pcb->pcb_fsbase; in getgregs()
467 grp[REG_GSBASE] = pcb->pcb_gsbase; in getgregs()
471 grp[REG_DS] = pcb->pcb_ds; in getgregs()
472 grp[REG_ES] = pcb->pcb_es; in getgregs()
473 grp[REG_FS] = pcb->pcb_fs; in getgregs()
474 grp[REG_GS] = pcb->pcb_gs; in getgregs()
476 grp[REG_DS] = rp->r_ds; in getgregs()
477 grp[REG_ES] = rp->r_es; in getgregs()
478 grp[REG_FS] = rp->r_fs; in getgregs()
479 grp[REG_GS] = rp->r_gs; in getgregs()
483 grp[REG_TRAPNO] = rp->r_trapno; in getgregs()
484 grp[REG_ERR] = rp->r_err; in getgregs()
485 grp[REG_RIP] = rp->r_rip; in getgregs()
486 grp[REG_CS] = rp->r_cs; in getgregs()
487 grp[REG_SS] = rp->r_ss; in getgregs()
488 grp[REG_RFL] = rp->r_rfl; in getgregs()
489 grp[REG_RSP] = rp->r_rsp; in getgregs()
491 bcopy(&rp->r_gs, grp, sizeof (gregset_t)); in getgregs()
498 getgregs32(klwp_t *lwp, gregset32_t grp) in getgregs32() argument
507 grp[GS] = (uint16_t)pcb->pcb_gs; in getgregs32()
508 grp[FS] = (uint16_t)pcb->pcb_fs; in getgregs32()
509 grp[DS] = (uint16_t)pcb->pcb_ds; in getgregs32()
510 grp[ES] = (uint16_t)pcb->pcb_es; in getgregs32()
512 grp[GS] = (uint16_t)rp->r_gs; in getgregs32()
513 grp[FS] = (uint16_t)rp->r_fs; in getgregs32()
514 grp[DS] = (uint16_t)rp->r_ds; in getgregs32()
515 grp[ES] = (uint16_t)rp->r_es; in getgregs32()
519 grp[EDI] = (greg32_t)rp->r_rdi; in getgregs32()
520 grp[ESI] = (greg32_t)rp->r_rsi; in getgregs32()
521 grp[EBP] = (greg32_t)rp->r_rbp; in getgregs32()
522 grp[ESP] = 0; in getgregs32()
523 grp[EBX] = (greg32_t)rp->r_rbx; in getgregs32()
524 grp[EDX] = (greg32_t)rp->r_rdx; in getgregs32()
525 grp[ECX] = (greg32_t)rp->r_rcx; in getgregs32()
526 grp[EAX] = (greg32_t)rp->r_rax; in getgregs32()
527 grp[TRAPNO] = (greg32_t)rp->r_trapno; in getgregs32()
528 grp[ERR] = (greg32_t)rp->r_err; in getgregs32()
529 grp[EIP] = (greg32_t)rp->r_rip; in getgregs32()
530 grp[CS] = (uint16_t)rp->r_cs; in getgregs32()
531 grp[EFL] = (greg32_t)rp->r_rfl; in getgregs32()
532 grp[UESP] = (greg32_t)rp->r_rsp; in getgregs32()
533 grp[SS] = (uint16_t)rp->r_ss; in getgregs32()
698 setgregs(klwp_t *lwp, gregset_t grp) in setgregs() argument
712 rp->r_rdi = grp[REG_RDI]; in setgregs()
713 rp->r_rsi = grp[REG_RSI]; in setgregs()
714 rp->r_rdx = grp[REG_RDX]; in setgregs()
715 rp->r_rcx = grp[REG_RCX]; in setgregs()
716 rp->r_r8 = grp[REG_R8]; in setgregs()
717 rp->r_r9 = grp[REG_R9]; in setgregs()
718 rp->r_rax = grp[REG_RAX]; in setgregs()
719 rp->r_rbx = grp[REG_RBX]; in setgregs()
720 rp->r_rbp = grp[REG_RBP]; in setgregs()
721 rp->r_r10 = grp[REG_R10]; in setgregs()
722 rp->r_r11 = grp[REG_R11]; in setgregs()
723 rp->r_r12 = grp[REG_R12]; in setgregs()
724 rp->r_r13 = grp[REG_R13]; in setgregs()
725 rp->r_r14 = grp[REG_R14]; in setgregs()
726 rp->r_r15 = grp[REG_R15]; in setgregs()
727 rp->r_trapno = grp[REG_TRAPNO]; in setgregs()
728 rp->r_err = grp[REG_ERR]; in setgregs()
729 rp->r_rip = grp[REG_RIP]; in setgregs()
736 rp->r_rsp = grp[REG_RSP]; in setgregs()
751 pcb->pcb_fsbase = grp[REG_FSBASE]; in setgregs()
752 pcb->pcb_gsbase = grp[REG_GSBASE]; in setgregs()
753 pcb->pcb_fs = fix_segreg(grp[REG_FS], IS_NOT_CS, datamodel); in setgregs()
754 pcb->pcb_gs = fix_segreg(grp[REG_GS], IS_NOT_CS, datamodel); in setgregs()
765 rp->r_rdi = (uint32_t)grp[REG_RDI]; in setgregs()
766 rp->r_rsi = (uint32_t)grp[REG_RSI]; in setgregs()
767 rp->r_rdx = (uint32_t)grp[REG_RDX]; in setgregs()
768 rp->r_rcx = (uint32_t)grp[REG_RCX]; in setgregs()
769 rp->r_rax = (uint32_t)grp[REG_RAX]; in setgregs()
770 rp->r_rbx = (uint32_t)grp[REG_RBX]; in setgregs()
771 rp->r_rbp = (uint32_t)grp[REG_RBP]; in setgregs()
772 rp->r_trapno = (uint32_t)grp[REG_TRAPNO]; in setgregs()
773 rp->r_err = (uint32_t)grp[REG_ERR]; in setgregs()
774 rp->r_rip = (uint32_t)grp[REG_RIP]; in setgregs()
776 rp->r_cs = fix_segreg(grp[REG_CS], IS_CS, datamodel); in setgregs()
777 rp->r_ss = fix_segreg(grp[REG_DS], IS_NOT_CS, datamodel); in setgregs()
779 rp->r_rsp = (uint32_t)grp[REG_RSP]; in setgregs()
784 pcb->pcb_ds = fix_segreg(grp[REG_DS], IS_NOT_CS, datamodel); in setgregs()
785 pcb->pcb_es = fix_segreg(grp[REG_ES], IS_NOT_CS, datamodel); in setgregs()
790 pcb->pcb_fs = fix_segreg(grp[REG_FS], IS_NOT_CS, datamodel); in setgregs()
791 pcb->pcb_gs = fix_segreg(grp[REG_GS], IS_NOT_CS, datamodel); in setgregs()
807 (grp[REG_RFL] & PSL_USERMASK); in setgregs()
814 grp[EFL] = (rp->r_efl & ~PSL_USERMASK) | (grp[EFL] & PSL_USERMASK); in setgregs()
819 bcopy(grp, &rp->r_gs, sizeof (gregset_t)); in setgregs()