Changeset View
Changeset View
Standalone View
Standalone View
sys/sparc64/sparc64/machdep.c
Show First 20 Lines • Show All 1,050 Lines • ▼ Show 20 Lines | fill_fpregs(struct thread *td, struct fpreg *fpregs) | ||||
struct trapframe *tf; | struct trapframe *tf; | ||||
struct pcb *pcb; | struct pcb *pcb; | ||||
pcb = td->td_pcb; | pcb = td->td_pcb; | ||||
tf = td->td_frame; | tf = td->td_frame; | ||||
bcopy(pcb->pcb_ufp, fpregs->fr_regs, sizeof(fpregs->fr_regs)); | bcopy(pcb->pcb_ufp, fpregs->fr_regs, sizeof(fpregs->fr_regs)); | ||||
fpregs->fr_fsr = tf->tf_fsr; | fpregs->fr_fsr = tf->tf_fsr; | ||||
fpregs->fr_gsr = tf->tf_gsr; | fpregs->fr_gsr = tf->tf_gsr; | ||||
fpregs->fr_pad[0] = 0; | |||||
return (0); | return (0); | ||||
} | } | ||||
int | int | ||||
set_fpregs(struct thread *td, struct fpreg *fpregs) | set_fpregs(struct thread *td, struct fpreg *fpregs) | ||||
{ | { | ||||
struct trapframe *tf; | struct trapframe *tf; | ||||
struct pcb *pcb; | struct pcb *pcb; | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |