Lines Matching refs:fp

62 #include <sys/fp.h>
162 continue; /* valid fp number */
167 fn->f_ftw |= 1 << (i << 1); /* fp zero */
191 fpregset_to_fxsave(const fpregset_t *fp, struct fxsave_state *fx)
194 bcopy(fp, fx, sizeof (*fx));
196 const struct _fpchip_state *fc = &fp->fp_reg_set.fpchip_state;
212 fxsave_to_fpregset(const struct fxsave_state *fx, fpregset_t *fp)
215 bcopy(fx, fp, sizeof (*fx));
217 struct _fpchip_state *fc = &fp->fp_reg_set.fpchip_state;
227 fpregset32_to_fxsave(const fpregset32_t *fp, struct fxsave_state *fx)
229 const struct fpchip32_state *fc = &fp->fp_reg_set.fpchip_state;
240 fxsave_to_fpregset32(const struct fxsave_state *fx, fpregset32_t *fp)
242 struct fpchip32_state *fc = &fp->fp_reg_set.fpchip_state;
274 setfpregs(klwp_t *lwp, fpregset_t *fp)
298 bcopy(fp, &fpu->fpu_regs.kfpu_u.kfpu_fn,
303 fpregset_to_fxsave(fp, &fpu->fpu_regs.kfpu_u.kfpu_fx);
305 fp->fp_reg_set.fpchip_state.xstatus;
309 fpregset_to_fxsave(fp,
312 fp->fp_reg_set.fpchip_state.xstatus;
321 fpu->fpu_regs.kfpu_status = fp->fp_reg_set.fpchip_state.status;
329 getfpregs(klwp_t *lwp, fpregset_t *fp)
362 bcopy(&fpu->fpu_regs.kfpu_u.kfpu_fn, fp,
367 fxsave_to_fpregset(&fpu->fpu_regs.kfpu_u.kfpu_fx, fp);
368 fp->fp_reg_set.fpchip_state.xstatus =
373 &fpu->fpu_regs.kfpu_u.kfpu_xs.xs_fxsave, fp);
374 fp->fp_reg_set.fpchip_state.xstatus =
381 fp->fp_reg_set.fpchip_state.status = fpu->fpu_regs.kfpu_status;
389 bcopy(&x87_initial, fp, sizeof (x87_initial));
399 fxsave_to_fpregset(&sse_initial, fp);
400 fp->fp_reg_set.fpchip_state.xstatus =
407 fp->fp_reg_set.fpchip_state.status = fpu->fpu_regs.kfpu_status;
418 setfpregs32(klwp_t *lwp, fpregset32_t *fp)
422 fpregset_32ton(fp, &fpregs);
430 getfpregs32(klwp_t *lwp, fpregset32_t *fp)
435 fpregset_nto32(&fpregs, fp);
853 struct frame *fp = (struct frame *)getfp();
863 minfp = fp;
865 pc = ((struct regs *)fp)->r_pc;
868 nextfp = (struct frame *)fp->fr_savfp;
869 pc = fp->fr_savpc;
883 fp = nextfp;
884 minfp = fp;
1210 struct frame *fp = (struct frame *)fpreg;
1220 printf("traceback: %%fp = %p\n", (void *)fp);
1226 fp = (struct frame *)plat_traceback(fpreg);
1227 if ((uintptr_t)fp < KERNELBASE)
1230 pc = fp->fr_savpc;
1231 fp = (struct frame *)fp->fr_savfp;
1233 while ((uintptr_t)fp >= KERNELBASE) {
1239 if (((uintptr_t)fp & (STACK_ALIGN - 1)) != 0) {
1240 if (((uintptr_t)fp & (8 - 1)) == 0) {
1242 " aligned %%fp = %p\n", (void *)fp);
1245 " >> mis-aligned %%fp = %p\n", (void *)fp);
1251 nextpc = (uintptr_t)fp->fr_savpc;
1252 nextfp = (struct frame *)fp->fr_savfp;
1254 printf("%016lx %s:%s+%lx (%s)\n", (uintptr_t)fp,
1261 (uintptr_t)fp, pc, args);
1286 fp = nextfp;
1302 struct frame *fp = (struct frame *)fpreg;
1321 printf("traceback: %%fp = %p\n", (void *)fp);
1342 fp = (struct frame *)plat_traceback(fpreg);
1343 if ((uintptr_t)fp < KERNELBASE)
1346 minfp = fp; /* Baseline minimum frame pointer */
1347 pc = fp->fr_savpc;
1348 fp = (struct frame *)fp->fr_savfp;
1350 while ((uintptr_t)fp >= KERNELBASE) {
1354 if (fp <= minfp || fp >= stacktop) {
1367 if ((uintptr_t)fp & (STACK_ALIGN - 1)) {
1368 printf(" >> mis-aligned %%fp = %p\n", (void *)fp);
1372 nextpc = fp->fr_savpc;
1373 nextfp = (struct frame *)fp->fr_savfp;
1375 argv = (long *)((char *)fp + sizeof (struct frame));
1385 printf("%08lx %s:%s+%lx (%s)\n", (uintptr_t)fp,
1393 (uintptr_t)fp, pc, args);
1418 minfp = fp;
1420 fp = nextfp;