Print this page
XXX AVX procfs

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libproc/common/Plwpregs.c
          +++ new/usr/src/lib/libproc/common/Plwpregs.c
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  
  26      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  27      -
  28   26  #include <sys/types.h>
  29   27  #include <sys/uio.h>
  30   28  #include <string.h>
  31   29  #include <errno.h>
  32   30  #include <limits.h>
  33   31  
  34   32  #include "Pcontrol.h"
  35   33  #include "P32ton.h"
  36   34  
  37   35  /*
↓ open down ↓ 174 lines elided ↑ open up ↑
 212  210          (void) memcpy(fpregs, &lps.pr_fpreg, sizeof (prfpregset_t));
 213  211          return (0);
 214  212  }
 215  213  
 216  214  int Plwp_setfpregs(struct ps_prochandle *P, lwpid_t lwpid,
 217  215      const prfpregset_t *fpregs)
 218  216  {
 219  217          return (setlwpregs(P, lwpid, PCSFPREG, fpregs, sizeof (prfpregset_t)));
 220  218  }
 221  219  
 222      -#if defined(sparc) || defined(__sparc)
 223  220  int
 224  221  Plwp_getxregs(struct ps_prochandle *P, lwpid_t lwpid, prxregset_t *xregs)
 225  222  {
 226  223          lwp_info_t *lwp;
 227  224  
 228  225          if (P->state == PS_IDLE) {
 229  226                  errno = ENODATA;
 230  227                  return (-1);
 231  228          }
 232  229  
↓ open down ↓ 16 lines elided ↑ open up ↑
 249  246                  errno = ENODATA;
 250  247          return (-1);
 251  248  }
 252  249  
 253  250  int
 254  251  Plwp_setxregs(struct ps_prochandle *P, lwpid_t lwpid, const prxregset_t *xregs)
 255  252  {
 256  253          return (setlwpregs(P, lwpid, PCSXREG, xregs, sizeof (prxregset_t)));
 257  254  }
 258  255  
      256 +#if defined(sparc) || defined(__sparc)
 259  257  int
 260  258  Plwp_getgwindows(struct ps_prochandle *P, lwpid_t lwpid, gwindows_t *gwins)
 261  259  {
 262  260          lwp_info_t *lwp;
 263  261  
 264  262          if (P->state == PS_IDLE) {
 265  263                  errno = ENODATA;
 266  264                  return (-1);
 267  265          }
 268  266  
↓ open down ↓ 232 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX