Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/reg.h
#ifndef _SYS_REG_H_ | #ifndef _SYS_REG_H_ | ||||
#define _SYS_REG_H_ | #define _SYS_REG_H_ | ||||
#include <machine/reg.h> | #include <machine/reg.h> | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
struct regset; | |||||
typedef bool (regset_get)(struct regset *, struct thread *, void *, | |||||
size_t *); | |||||
typedef bool (regset_set)(struct regset *, struct thread *, void *, | |||||
size_t *); | |||||
struct regset { | |||||
int note; | |||||
size_t size; | |||||
size_t align; | |||||
regset_get *get; | |||||
regset_set *set; | |||||
}; | |||||
#define ELF_REGSET(regset) DATA_SET(elf_regset, regset) | |||||
int fill_regs(struct thread *, struct reg *); | int fill_regs(struct thread *, struct reg *); | ||||
int set_regs(struct thread *, struct reg *); | int set_regs(struct thread *, struct reg *); | ||||
int fill_fpregs(struct thread *, struct fpreg *); | int fill_fpregs(struct thread *, struct fpreg *); | ||||
int set_fpregs(struct thread *, struct fpreg *); | int set_fpregs(struct thread *, struct fpreg *); | ||||
int fill_dbregs(struct thread *, struct dbreg *); | int fill_dbregs(struct thread *, struct dbreg *); | ||||
int set_dbregs(struct thread *, struct dbreg *); | int set_dbregs(struct thread *, struct dbreg *); | ||||
#ifdef COMPAT_FREEBSD32 | #ifdef COMPAT_FREEBSD32 | ||||
int fill_regs32(struct thread *, struct reg32 *); | int fill_regs32(struct thread *, struct reg32 *); | ||||
Show All 17 Lines |