Print this page
XXX AVX procfs


 221  * Set floating-point registers.
 222  * (Note: This can be an alias to setfpregs().)
 223  */
 224 void
 225 prsetprfpregs(klwp_t *lwp, prfpregset_t *pfp)
 226 {
 227         setfpregs(lwp, pfp);
 228 }
 229 
 230 #if defined(_SYSCALL32_IMPL)
 231 void
 232 prsetprfpregs32(klwp_t *lwp, prfpregset32_t *pfp)
 233 {
 234         setfpregs32(lwp, pfp);
 235 }
 236 #endif  /* _SYSCALL32_IMPL */
 237 
 238 /*
 239  * Does the system support extra register state?
 240  */
 241 /* ARGSUSED */
 242 int
 243 prhasx(proc_t *p)
 244 {
 245         return (0);

 246 }
 247 
 248 /*
 249  * Get the size of the extra registers.
 250  */
 251 /* ARGSUSED */
 252 int
 253 prgetprxregsize(proc_t *p)
 254 {
 255         return (0);
 256 }
 257 
 258 /*
 259  * Get extra registers.
 260  */
 261 /*ARGSUSED*/
 262 void
 263 prgetprxregs(klwp_t *lwp, caddr_t prx)
 264 {
 265         /* no extra registers */


 266 }
 267 
 268 /*
 269  * Set extra registers.
 270  */
 271 /*ARGSUSED*/
 272 void
 273 prsetprxregs(klwp_t *lwp, caddr_t prx)
 274 {
 275         /* no extra registers */


 276 }
 277 
 278 /*
 279  * Return the base (lower limit) of the process stack.
 280  */
 281 caddr_t
 282 prgetstackbase(proc_t *p)
 283 {
 284         return (p->p_usrstack - p->p_stksize);
 285 }
 286 
 287 /*
 288  * Return the "addr" field for pr_addr in prpsinfo_t.
 289  * This is a vestige of the past, so whatever we return is OK.
 290  */
 291 caddr_t
 292 prgetpsaddr(proc_t *p)
 293 {
 294         return ((caddr_t)p);
 295 }




 221  * Set floating-point registers.
 222  * (Note: This can be an alias to setfpregs().)
 223  */
 224 void
 225 prsetprfpregs(klwp_t *lwp, prfpregset_t *pfp)
 226 {
 227         setfpregs(lwp, pfp);
 228 }
 229 
 230 #if defined(_SYSCALL32_IMPL)
 231 void
 232 prsetprfpregs32(klwp_t *lwp, prfpregset32_t *pfp)
 233 {
 234         setfpregs32(lwp, pfp);
 235 }
 236 #endif  /* _SYSCALL32_IMPL */
 237 
 238 /*
 239  * Does the system support extra register state?
 240  */

 241 int
 242 prhasx(proc_t *p)
 243 {
 244         /* XXX */
 245         return (1);
 246 }
 247 
 248 /*
 249  * Get the size of the extra registers.
 250  */

 251 int
 252 prgetprxregsize(proc_t *p)
 253 {
 254         return (xregs_getsize(p));
 255 }
 256 
 257 /*
 258  * Get extra registers.
 259  */

 260 void
 261 prgetprxregs(klwp_t *lwp, caddr_t prx)
 262 {
 263         extern void xregs_get(struct _klwp *, caddr_t);
 264 
 265         xregs_get(lwp, prx);
 266 }
 267 
 268 /*
 269  * Set extra registers.
 270  */

 271 void
 272 prsetprxregs(klwp_t *lwp, caddr_t prx)
 273 {
 274         extern void xregs_set(struct _klwp *, caddr_t);
 275 
 276         xregs_set(lwp, prx);
 277 }
 278 
 279 /*
 280  * Return the base (lower limit) of the process stack.
 281  */
 282 caddr_t
 283 prgetstackbase(proc_t *p)
 284 {
 285         return (p->p_usrstack - p->p_stksize);
 286 }
 287 
 288 /*
 289  * Return the "addr" field for pr_addr in prpsinfo_t.
 290  * This is a vestige of the past, so whatever we return is OK.
 291  */
 292 caddr_t
 293 prgetpsaddr(proc_t *p)
 294 {
 295         return ((caddr_t)p);
 296 }