Lines Matching refs:grp

287 getgregs(klwp_t *lwp, gregset_t grp)  in getgregs()  argument
293 grp[REG_RDI] = rp->r_rdi; in getgregs()
294 grp[REG_RSI] = rp->r_rsi; in getgregs()
295 grp[REG_RDX] = rp->r_rdx; in getgregs()
296 grp[REG_RCX] = rp->r_rcx; in getgregs()
297 grp[REG_R8] = rp->r_r8; in getgregs()
298 grp[REG_R9] = rp->r_r9; in getgregs()
299 grp[REG_RAX] = rp->r_rax; in getgregs()
300 grp[REG_RBX] = rp->r_rbx; in getgregs()
301 grp[REG_RBP] = rp->r_rbp; in getgregs()
302 grp[REG_R10] = rp->r_r10; in getgregs()
303 grp[REG_R11] = rp->r_r11; in getgregs()
304 grp[REG_R12] = rp->r_r12; in getgregs()
305 grp[REG_R13] = rp->r_r13; in getgregs()
306 grp[REG_R14] = rp->r_r14; in getgregs()
307 grp[REG_R15] = rp->r_r15; in getgregs()
308 grp[REG_FSBASE] = pcb->pcb_fsbase; in getgregs()
309 grp[REG_GSBASE] = pcb->pcb_gsbase; in getgregs()
313 grp[REG_DS] = pcb->pcb_ds; in getgregs()
314 grp[REG_ES] = pcb->pcb_es; in getgregs()
315 grp[REG_FS] = pcb->pcb_fs; in getgregs()
316 grp[REG_GS] = pcb->pcb_gs; in getgregs()
318 grp[REG_DS] = rp->r_ds; in getgregs()
319 grp[REG_ES] = rp->r_es; in getgregs()
320 grp[REG_FS] = rp->r_fs; in getgregs()
321 grp[REG_GS] = rp->r_gs; in getgregs()
325 grp[REG_TRAPNO] = rp->r_trapno; in getgregs()
326 grp[REG_ERR] = rp->r_err; in getgregs()
327 grp[REG_RIP] = rp->r_rip; in getgregs()
328 grp[REG_CS] = rp->r_cs; in getgregs()
329 grp[REG_SS] = rp->r_ss; in getgregs()
330 grp[REG_RFL] = rp->r_rfl; in getgregs()
331 grp[REG_RSP] = rp->r_rsp; in getgregs()
337 getgregs32(klwp_t *lwp, gregset32_t grp) in getgregs32() argument
346 grp[GS] = (uint16_t)pcb->pcb_gs; in getgregs32()
347 grp[FS] = (uint16_t)pcb->pcb_fs; in getgregs32()
348 grp[DS] = (uint16_t)pcb->pcb_ds; in getgregs32()
349 grp[ES] = (uint16_t)pcb->pcb_es; in getgregs32()
351 grp[GS] = (uint16_t)rp->r_gs; in getgregs32()
352 grp[FS] = (uint16_t)rp->r_fs; in getgregs32()
353 grp[DS] = (uint16_t)rp->r_ds; in getgregs32()
354 grp[ES] = (uint16_t)rp->r_es; in getgregs32()
358 grp[EDI] = (greg32_t)rp->r_rdi; in getgregs32()
359 grp[ESI] = (greg32_t)rp->r_rsi; in getgregs32()
360 grp[EBP] = (greg32_t)rp->r_rbp; in getgregs32()
361 grp[ESP] = 0; in getgregs32()
362 grp[EBX] = (greg32_t)rp->r_rbx; in getgregs32()
363 grp[EDX] = (greg32_t)rp->r_rdx; in getgregs32()
364 grp[ECX] = (greg32_t)rp->r_rcx; in getgregs32()
365 grp[EAX] = (greg32_t)rp->r_rax; in getgregs32()
366 grp[TRAPNO] = (greg32_t)rp->r_trapno; in getgregs32()
367 grp[ERR] = (greg32_t)rp->r_err; in getgregs32()
368 grp[EIP] = (greg32_t)rp->r_rip; in getgregs32()
369 grp[CS] = (uint16_t)rp->r_cs; in getgregs32()
370 grp[EFL] = (greg32_t)rp->r_rfl; in getgregs32()
371 grp[UESP] = (greg32_t)rp->r_rsp; in getgregs32()
372 grp[SS] = (uint16_t)rp->r_ss; in getgregs32()
535 setgregs(klwp_t *lwp, gregset_t grp) in setgregs() argument
547 rp->r_rdi = grp[REG_RDI]; in setgregs()
548 rp->r_rsi = grp[REG_RSI]; in setgregs()
549 rp->r_rdx = grp[REG_RDX]; in setgregs()
550 rp->r_rcx = grp[REG_RCX]; in setgregs()
551 rp->r_r8 = grp[REG_R8]; in setgregs()
552 rp->r_r9 = grp[REG_R9]; in setgregs()
553 rp->r_rax = grp[REG_RAX]; in setgregs()
554 rp->r_rbx = grp[REG_RBX]; in setgregs()
555 rp->r_rbp = grp[REG_RBP]; in setgregs()
556 rp->r_r10 = grp[REG_R10]; in setgregs()
557 rp->r_r11 = grp[REG_R11]; in setgregs()
558 rp->r_r12 = grp[REG_R12]; in setgregs()
559 rp->r_r13 = grp[REG_R13]; in setgregs()
560 rp->r_r14 = grp[REG_R14]; in setgregs()
561 rp->r_r15 = grp[REG_R15]; in setgregs()
562 rp->r_trapno = grp[REG_TRAPNO]; in setgregs()
563 rp->r_err = grp[REG_ERR]; in setgregs()
564 rp->r_rip = grp[REG_RIP]; in setgregs()
571 rp->r_rsp = grp[REG_RSP]; in setgregs()
586 pcb->pcb_fsbase = grp[REG_FSBASE]; in setgregs()
587 pcb->pcb_gsbase = grp[REG_GSBASE]; in setgregs()
588 pcb->pcb_fs = fix_segreg(grp[REG_FS], IS_NOT_CS, datamodel); in setgregs()
589 pcb->pcb_gs = fix_segreg(grp[REG_GS], IS_NOT_CS, datamodel); in setgregs()
600 rp->r_rdi = (uint32_t)grp[REG_RDI]; in setgregs()
601 rp->r_rsi = (uint32_t)grp[REG_RSI]; in setgregs()
602 rp->r_rdx = (uint32_t)grp[REG_RDX]; in setgregs()
603 rp->r_rcx = (uint32_t)grp[REG_RCX]; in setgregs()
604 rp->r_rax = (uint32_t)grp[REG_RAX]; in setgregs()
605 rp->r_rbx = (uint32_t)grp[REG_RBX]; in setgregs()
606 rp->r_rbp = (uint32_t)grp[REG_RBP]; in setgregs()
607 rp->r_trapno = (uint32_t)grp[REG_TRAPNO]; in setgregs()
608 rp->r_err = (uint32_t)grp[REG_ERR]; in setgregs()
609 rp->r_rip = (uint32_t)grp[REG_RIP]; in setgregs()
611 rp->r_cs = fix_segreg(grp[REG_CS], IS_CS, datamodel); in setgregs()
612 rp->r_ss = fix_segreg(grp[REG_DS], IS_NOT_CS, datamodel); in setgregs()
614 rp->r_rsp = (uint32_t)grp[REG_RSP]; in setgregs()
619 pcb->pcb_ds = fix_segreg(grp[REG_DS], IS_NOT_CS, datamodel); in setgregs()
620 pcb->pcb_es = fix_segreg(grp[REG_ES], IS_NOT_CS, datamodel); in setgregs()
625 pcb->pcb_fs = fix_segreg(grp[REG_FS], IS_NOT_CS, datamodel); in setgregs()
626 pcb->pcb_gs = fix_segreg(grp[REG_GS], IS_NOT_CS, datamodel); in setgregs()
642 (grp[REG_RFL] & PSL_USERMASK); in setgregs()