Print this page
XXX AVX procfs

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/proc/prvnops.c
          +++ new/usr/src/uts/common/fs/proc/prvnops.c
↓ open down ↓ 1516 lines elided ↑ open up ↑
1517 1517  out:
1518 1518          kmem_free(pup, sizeof (*pup));
1519 1519          kmem_free(upup, sizeof (*upup));
1520 1520          return (error);
1521 1521  }
1522 1522  
1523 1523  /* ARGSUSED */
1524 1524  static int
1525 1525  pr_read_xregs(prnode_t *pnp, uio_t *uiop)
1526 1526  {
1527      -#if defined(__sparc)
1528 1527          proc_t *p;
1529 1528          kthread_t *t;
1530 1529          int error;
1531 1530          char *xreg;
1532 1531          size_t size;
1533 1532  
1534 1533          ASSERT(pnp->pr_type == PR_XREGS);
1535 1534  
1536 1535          xreg = kmem_zalloc(sizeof (prxregset_t), KM_SLEEP);
1537 1536  
↓ open down ↓ 12 lines elided ↑ open up ↑
1550 1549          /* drop p->p_lock while (possibly) touching the stack */
1551 1550          mutex_exit(&p->p_lock);
1552 1551          prgetprxregs(ttolwp(t), xreg);
1553 1552          mutex_enter(&p->p_lock);
1554 1553          prunlock(pnp);
1555 1554  
1556 1555          error = pr_uioread(xreg, size, uiop);
1557 1556  out:
1558 1557          kmem_free(xreg, sizeof (prxregset_t));
1559 1558          return (error);
1560      -#else
1561      -        return (0);
1562      -#endif
1563 1559  }
1564 1560  
1565 1561  #if defined(__sparc)
1566 1562  
1567 1563  static int
1568 1564  pr_read_gwindows(prnode_t *pnp, uio_t *uiop)
1569 1565  {
1570 1566          proc_t *p;
1571 1567          kthread_t *t;
1572 1568          gwindows_t *gwp;
↓ open down ↓ 4409 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX