Print this page
XXX AVX procfs

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/fs/proc/prmachdep.c
          +++ new/usr/src/uts/intel/fs/proc/prmachdep.c
↓ open down ↓ 230 lines elided ↑ open up ↑
 231  231  void
 232  232  prsetprfpregs32(klwp_t *lwp, prfpregset32_t *pfp)
 233  233  {
 234  234          setfpregs32(lwp, pfp);
 235  235  }
 236  236  #endif  /* _SYSCALL32_IMPL */
 237  237  
 238  238  /*
 239  239   * Does the system support extra register state?
 240  240   */
 241      -/* ARGSUSED */
 242  241  int
 243  242  prhasx(proc_t *p)
 244  243  {
 245      -        return (0);
      244 +        /* XXX */
      245 +        return (1);
 246  246  }
 247  247  
 248  248  /*
 249  249   * Get the size of the extra registers.
 250  250   */
 251      -/* ARGSUSED */
 252  251  int
 253  252  prgetprxregsize(proc_t *p)
 254  253  {
 255      -        return (0);
      254 +        return (xregs_getsize(p));
 256  255  }
 257  256  
 258  257  /*
 259  258   * Get extra registers.
 260  259   */
 261      -/*ARGSUSED*/
 262  260  void
 263  261  prgetprxregs(klwp_t *lwp, caddr_t prx)
 264  262  {
 265      -        /* no extra registers */
      263 +        extern void xregs_get(struct _klwp *, caddr_t);
      264 +
      265 +        xregs_get(lwp, prx);
 266  266  }
 267  267  
 268  268  /*
 269  269   * Set extra registers.
 270  270   */
 271      -/*ARGSUSED*/
 272  271  void
 273  272  prsetprxregs(klwp_t *lwp, caddr_t prx)
 274  273  {
 275      -        /* no extra registers */
      274 +        extern void xregs_set(struct _klwp *, caddr_t);
      275 +
      276 +        xregs_set(lwp, prx);
 276  277  }
 277  278  
 278  279  /*
 279  280   * Return the base (lower limit) of the process stack.
 280  281   */
 281  282  caddr_t
 282  283  prgetstackbase(proc_t *p)
 283  284  {
 284  285          return (p->p_usrstack - p->p_stksize);
 285  286  }
↓ open down ↓ 290 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX