Print this page
XXX AVX procfs


 104 extern uint32_t inl(int port);
 105 extern void outw(int port, uint16_t value);
 106 extern void outl(int port, uint32_t value);
 107 
 108 extern void pc_reset(void) __NORETURN;
 109 extern void efi_reset(void) __NORETURN;
 110 extern void reset(void) __NORETURN;
 111 extern int goany(void);
 112 
 113 extern void setgregs(klwp_t *, gregset_t);
 114 extern void getgregs(klwp_t *, gregset_t);
 115 extern void setfpregs(klwp_t *, fpregset_t *);
 116 extern void getfpregs(klwp_t *, fpregset_t *);
 117 
 118 #if defined(_SYSCALL32_IMPL)
 119 extern void getgregs32(klwp_t *, gregset32_t);
 120 extern void setfpregs32(klwp_t *, fpregset32_t *);
 121 extern void getfpregs32(klwp_t *, fpregset32_t *);
 122 #endif
 123 


















 124 struct fpu_ctx;
 125 
 126 extern void fp_free(struct fpu_ctx *, int);
 127 extern void fp_save(struct fpu_ctx *);
 128 extern void fp_restore(struct fpu_ctx *);
 129 
 130 extern int fpu_pentium_fdivbug;
 131 
 132 extern void sep_save(void *);
 133 extern void sep_restore(void *);
 134 
 135 extern void brand_interpositioning_enable(void);
 136 extern void brand_interpositioning_disable(void);
 137 
 138 struct regs;
 139 
 140 extern int instr_size(struct regs *, caddr_t *, enum seg_rw);
 141 
 142 extern int enable_cbcp; /* patchable in /etc/system */
 143 




 104 extern uint32_t inl(int port);
 105 extern void outw(int port, uint16_t value);
 106 extern void outl(int port, uint32_t value);
 107 
 108 extern void pc_reset(void) __NORETURN;
 109 extern void efi_reset(void) __NORETURN;
 110 extern void reset(void) __NORETURN;
 111 extern int goany(void);
 112 
 113 extern void setgregs(klwp_t *, gregset_t);
 114 extern void getgregs(klwp_t *, gregset_t);
 115 extern void setfpregs(klwp_t *, fpregset_t *);
 116 extern void getfpregs(klwp_t *, fpregset_t *);
 117 
 118 #if defined(_SYSCALL32_IMPL)
 119 extern void getgregs32(klwp_t *, gregset32_t);
 120 extern void setfpregs32(klwp_t *, fpregset32_t *);
 121 extern void getfpregs32(klwp_t *, fpregset32_t *);
 122 #endif
 123 
 124 struct ucontext;
 125 extern void xregs_clrptr(struct _klwp *, struct ucontext *);
 126 extern int xregs_hasptr(struct _klwp *, struct ucontext *);
 127 extern caddr_t xregs_getptr(struct _klwp *, struct ucontext *);
 128 extern void xregs_setptr(struct _klwp *, struct ucontext *, caddr_t);
 129 
 130 #if defined(_SYSCALL32_IMPL)
 131 struct ucontext32;
 132 extern void xregs_clrptr32(struct _klwp *, struct ucontext32 *);
 133 extern int xregs_hasptr32(struct _klwp *, struct ucontext32 *);
 134 extern caddr32_t xregs_getptr32(struct _klwp *, struct ucontext32 *);
 135 extern void xregs_setptr32(struct _klwp *, struct ucontext32 *, caddr32_t);
 136 #endif /* _SYSCALL32_IMPL */
 137 
 138 extern void xregs_get(struct _klwp *, caddr_t);
 139 extern void xregs_set(struct _klwp *, caddr_t);
 140 extern int xregs_getsize(struct proc *);
 141 
 142 struct fpu_ctx;
 143 
 144 extern void fp_free(struct fpu_ctx *, int);
 145 extern void fp_save(struct fpu_ctx *);
 146 extern void fp_restore(struct fpu_ctx *);
 147 
 148 extern int fpu_pentium_fdivbug;
 149 
 150 extern void sep_save(void *);
 151 extern void sep_restore(void *);
 152 
 153 extern void brand_interpositioning_enable(void);
 154 extern void brand_interpositioning_disable(void);
 155 
 156 struct regs;
 157 
 158 extern int instr_size(struct regs *, caddr_t *, enum seg_rw);
 159 
 160 extern int enable_cbcp; /* patchable in /etc/system */
 161