Changeset View
Changeset View
Standalone View
Standalone View
sys/riscv/include/reg.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | struct fpreg { | ||||
uint64_t fp_x[32][2]; /* Floating point registers */ | uint64_t fp_x[32][2]; /* Floating point registers */ | ||||
uint64_t fp_fcsr; /* Floating point control reg */ | uint64_t fp_fcsr; /* Floating point control reg */ | ||||
}; | }; | ||||
struct dbreg { | struct dbreg { | ||||
int dummy; | int dummy; | ||||
}; | }; | ||||
#ifdef _KERNEL | |||||
/* | |||||
* XXX these interfaces are MI, so they should be declared in a MI place. | |||||
*/ | |||||
int fill_regs(struct thread *, struct reg *); | |||||
int set_regs(struct thread *, struct reg *); | |||||
int fill_fpregs(struct thread *, struct fpreg *); | |||||
int set_fpregs(struct thread *, struct fpreg *); | |||||
int fill_dbregs(struct thread *, struct dbreg *); | |||||
int set_dbregs(struct thread *, struct dbreg *); | |||||
#endif | |||||
#endif /* !_MACHINE_REG_H_ */ | #endif /* !_MACHINE_REG_H_ */ |