Print this page
XXX AVX procfs

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/ia32/sys/privregs.h
          +++ new/usr/src/uts/intel/ia32/sys/privregs.h
↓ open down ↓ 19 lines elided ↑ open up ↑
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27   27  #ifndef _IA32_SYS_PRIVREGS_H
  28   28  #define _IA32_SYS_PRIVREGS_H
  29   29  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31      -
  32   30  #ifdef __cplusplus
  33   31  extern "C" {
  34   32  #endif
  35   33  
  36   34  /*
  37   35   * This file describes the cpu's privileged register set, and
  38   36   * how the machine state is saved on the stack when a trap occurs.
  39   37   */
  40   38  
  41   39  #if !defined(__i386)
↓ open down ↓ 41 lines elided ↑ open up ↑
  83   81  #define r_r1    r_edx           /* r1 for portability */
  84   82  #define r_fp    r_ebp           /* system frame pointer */
  85   83  #define r_sp    r_uesp          /* user stack pointer */
  86   84  #define r_pc    r_eip           /* user's instruction pointer */
  87   85  #define r_ps    r_efl           /* user's EFLAGS */
  88   86  
  89   87  #define GREG_NUM        8       /* Number of regs between %edi and %eax */
  90   88  
  91   89  #ifdef _KERNEL
  92   90  #define lwptoregs(lwp)  ((struct regs *)((lwp)->lwp_regs))
       91 +#define lwptofpu(lwp)   ((kfpu_t *)((lwp)->lwp_fpu))
  93   92  #endif /* _KERNEL */
  94   93  
  95   94  #else   /* !_ASM */
  96   95  
  97   96  #if defined(_MACHDEP)
  98   97  
  99   98  #include <sys/machprivregs.h>
 100   99  
 101  100  /*
 102  101   * Save current frame on the stack.  Uses %eax.
↓ open down ↓ 156 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX