cpustate
struct md_coredump cpustate;
chdr->c_cpusize = sizeof(cpustate);
cpustate.md_tf = *l->l_md.md_tf;
cpustate.md_tf.tf_regs[FRAME_SP] = alpha_pal_rdusp(); /* XXX */
cpustate.md_fpstate = ((struct pcb *)lwp_getpcb(l))->pcb_fp;
memset(&cpustate.md_fpstate, 0, sizeof(cpustate.md_fpstate));
&cpustate, sizeof(cpustate)), ENOSYS, error);
&cpustate, sizeof(cpustate)), ENOSYS, error);
} cpustate;
chdr->c_cpusize = sizeof(cpustate);
error = process_read_regs(l, &cpustate.regs);
error = process_read_fpregs(l, &cpustate.fpregs, NULL);
&cpustate, chdr->c_cpusize), ENOSYS, error);
} cpustate;
chdr->c_cpusize = sizeof(struct cpustate);
cpustate.tf = *l->l_md.md_utf;
cpustate.fpregs = ((struct pcb *)lwp_getpcb(l))->pcb_fpregs;
} cpustate;
chdr->c_cpusize = sizeof(struct cpustate);
cpustate.frame = *l->l_md.md_utf;
cpustate.fpregs = pcb->pcb_fpregs;
&cpustate, chdr->c_cpusize), ENOSYS, error);
&cpustate, chdr->c_cpusize), ENOSYS, error);
} cpustate;
chdr->c_cpusize = sizeof(struct cpustate);
cpustate.tf.tf_reg[i] = tf->tf_reg[i];
cpustate.tf.tf_pc = tf->tf_pc;
cpustate.tf.tf_tval = tf->tf_tval;
cpustate.tf.tf_cause = tf->tf_cause;
cpustate.tf.tf_sr = tf->tf_sr;
cpustate.fpregs = ((struct pcb *)lwp_getpcb(l))->pcb_fpregs;
memset(&cpustate.fpregs, 0, sizeof(cpustate.fpregs));