Lines Matching refs:gregs
277 const greg_t *gregs = &src->uc_mcontext.gregs[0]; in ucontext_n_to_prgregs() local
279 dst[R_CCR] = gregs[REG_CCR]; in ucontext_n_to_prgregs()
280 dst[R_ASI] = gregs[REG_ASI]; in ucontext_n_to_prgregs()
281 dst[R_FPRS] = gregs[REG_FPRS]; in ucontext_n_to_prgregs()
282 dst[R_PC] = gregs[REG_PC]; in ucontext_n_to_prgregs()
283 dst[R_nPC] = gregs[REG_nPC]; in ucontext_n_to_prgregs()
284 dst[R_Y] = gregs[REG_Y]; in ucontext_n_to_prgregs()
286 dst[R_G1] = gregs[REG_G1]; in ucontext_n_to_prgregs()
287 dst[R_G2] = gregs[REG_G2]; in ucontext_n_to_prgregs()
288 dst[R_G3] = gregs[REG_G3]; in ucontext_n_to_prgregs()
289 dst[R_G4] = gregs[REG_G4]; in ucontext_n_to_prgregs()
290 dst[R_G5] = gregs[REG_G5]; in ucontext_n_to_prgregs()
291 dst[R_G6] = gregs[REG_G6]; in ucontext_n_to_prgregs()
292 dst[R_G7] = gregs[REG_G7]; in ucontext_n_to_prgregs()
294 dst[R_O0] = gregs[REG_O0]; in ucontext_n_to_prgregs()
295 dst[R_O1] = gregs[REG_O1]; in ucontext_n_to_prgregs()
296 dst[R_O2] = gregs[REG_O2]; in ucontext_n_to_prgregs()
297 dst[R_O3] = gregs[REG_O3]; in ucontext_n_to_prgregs()
298 dst[R_O4] = gregs[REG_O4]; in ucontext_n_to_prgregs()
299 dst[R_O5] = gregs[REG_O5]; in ucontext_n_to_prgregs()
300 dst[R_O6] = gregs[REG_O6]; in ucontext_n_to_prgregs()
301 dst[R_O7] = gregs[REG_O7]; in ucontext_n_to_prgregs()
311 const greg32_t *gregs = &src->uc_mcontext.gregs[0]; in ucontext_32_to_prgregs() local
313 dst[R_PSR] = (uint64_t)(uint32_t)gregs[REG_PSR]; in ucontext_32_to_prgregs()
314 dst[R_PC] = (uint64_t)(uint32_t)gregs[REG_PC]; in ucontext_32_to_prgregs()
315 dst[R_nPC] = (uint64_t)(uint32_t)gregs[REG_nPC]; in ucontext_32_to_prgregs()
316 dst[R_Y] = (uint64_t)(uint32_t)gregs[REG_Y]; in ucontext_32_to_prgregs()
318 dst[R_G1] = (uint64_t)(uint32_t)gregs[REG_G1]; in ucontext_32_to_prgregs()
319 dst[R_G2] = (uint64_t)(uint32_t)gregs[REG_G2]; in ucontext_32_to_prgregs()
320 dst[R_G3] = (uint64_t)(uint32_t)gregs[REG_G3]; in ucontext_32_to_prgregs()
321 dst[R_G4] = (uint64_t)(uint32_t)gregs[REG_G4]; in ucontext_32_to_prgregs()
322 dst[R_G5] = (uint64_t)(uint32_t)gregs[REG_G5]; in ucontext_32_to_prgregs()
323 dst[R_G6] = (uint64_t)(uint32_t)gregs[REG_G6]; in ucontext_32_to_prgregs()
324 dst[R_G7] = (uint64_t)(uint32_t)gregs[REG_G7]; in ucontext_32_to_prgregs()
326 dst[R_O0] = (uint64_t)(uint32_t)gregs[REG_O0]; in ucontext_32_to_prgregs()
327 dst[R_O1] = (uint64_t)(uint32_t)gregs[REG_O1]; in ucontext_32_to_prgregs()
328 dst[R_O2] = (uint64_t)(uint32_t)gregs[REG_O2]; in ucontext_32_to_prgregs()
329 dst[R_O3] = (uint64_t)(uint32_t)gregs[REG_O3]; in ucontext_32_to_prgregs()
330 dst[R_O4] = (uint64_t)(uint32_t)gregs[REG_O4]; in ucontext_32_to_prgregs()
331 dst[R_O5] = (uint64_t)(uint32_t)gregs[REG_O5]; in ucontext_32_to_prgregs()
332 dst[R_O6] = (uint64_t)(uint32_t)gregs[REG_O6]; in ucontext_32_to_prgregs()
333 dst[R_O7] = (uint64_t)(uint32_t)gregs[REG_O7]; in ucontext_32_to_prgregs()
343 prgregset_t gregs; in Pstack_iter() local
354 (void) memcpy(gregs, regs, sizeof (gregs)); in Pstack_iter()
357 fp = gregs[R_FP]; in Pstack_iter()
362 args[i] = gregs[R_I0 + i]; in Pstack_iter()
363 if ((rv = func(arg, gregs, 6, args)) != 0) in Pstack_iter()
366 gregs[R_PC] = gregs[R_I7]; in Pstack_iter()
367 gregs[R_nPC] = gregs[R_PC] + 4; in Pstack_iter()
368 (void) memcpy(&gregs[R_O0], &gregs[R_I0], 8*sizeof (prgreg_t)); in Pstack_iter()
369 if ((sp = gregs[R_FP]) == 0) in Pstack_iter()
380 ucontext_32_to_prgregs(&uc32, gregs); in Pstack_iter()
381 sp = gregs[R_SP]; in Pstack_iter()
388 (struct rwindow *)&gregs[R_L0]); in Pstack_iter()
398 ucontext_n_to_prgregs(&uc, gregs); in Pstack_iter()
399 sp = gregs[R_SP] + STACK_BIAS; in Pstack_iter()
402 n = Pread(P, &gregs[R_L0], sizeof (struct rwindow), sp); in Pstack_iter()
417 if (read_gwin(P, (struct rwindow *)&gregs[R_L0], sp) == -1) in Pstack_iter()