Print this page
6345 remove xhat support

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/vm/as.h
          +++ new/usr/src/uts/common/vm/as.h
↓ open down ↓ 117 lines elided ↑ open up ↑
 118  118          struct seg *a_lastgap;  /* last seg found by as_gap() w/ AS_HI (mmap) */
 119  119          struct seg *a_lastgaphl; /* last seg saved in as_gap() either for */
 120  120                                  /* AS_HI or AS_LO used in as_addseg() */
 121  121          avl_tree_t a_segtree;   /* segments in this address space. (AVL tree) */
 122  122          avl_tree_t a_wpage;     /* watched pages (procfs) */
 123  123          uchar_t a_updatedir;    /* mappings changed, rebuild a_objectdir */
 124  124          timespec_t a_updatetime;        /* time when mappings last changed */
 125  125          vnode_t **a_objectdir;  /* object directory (procfs) */
 126  126          size_t  a_sizedir;      /* size of object directory */
 127  127          struct as_callback *a_callbacks; /* callback list */
 128      -        void *a_xhat;           /* list of xhat providers */
 129  128          proc_t  *a_proc;        /* back pointer to proc */
 130  129          size_t  a_resvsize;     /* size of reserved part of address space */
 131  130  };
 132  131  
 133  132  #define AS_PAGLCK               0x80
 134  133  #define AS_CLAIMGAP             0x40
 135  134  #define AS_UNMAPWAIT            0x20
 136  135  #define AS_NEEDSPURGE           0x10    /* mostly for seg_nf, see as_purge() */
 137  136  #define AS_NOUNMAPWAIT          0x02
 138      -#define AS_BUSY                 0x01    /* needed by XHAT framework */
 139  137  
 140  138  #define AS_ISPGLCK(as)          ((as)->a_flags & AS_PAGLCK)
 141  139  #define AS_ISCLAIMGAP(as)       ((as)->a_flags & AS_CLAIMGAP)
 142  140  #define AS_ISUNMAPWAIT(as)      ((as)->a_flags & AS_UNMAPWAIT)
 143      -#define AS_ISBUSY(as)           ((as)->a_flags & AS_BUSY)
 144  141  #define AS_ISNOUNMAPWAIT(as)    ((as)->a_flags & AS_NOUNMAPWAIT)
 145  142  
 146  143  #define AS_SETPGLCK(as)         ((as)->a_flags |= AS_PAGLCK)
 147  144  #define AS_SETCLAIMGAP(as)      ((as)->a_flags |= AS_CLAIMGAP)
 148  145  #define AS_SETUNMAPWAIT(as)     ((as)->a_flags |= AS_UNMAPWAIT)
 149      -#define AS_SETBUSY(as)          ((as)->a_flags |= AS_BUSY)
 150  146  #define AS_SETNOUNMAPWAIT(as)   ((as)->a_flags |= AS_NOUNMAPWAIT)
 151  147  
 152  148  #define AS_CLRPGLCK(as)         ((as)->a_flags &= ~AS_PAGLCK)
 153  149  #define AS_CLRCLAIMGAP(as)      ((as)->a_flags &= ~AS_CLAIMGAP)
 154  150  #define AS_CLRUNMAPWAIT(as)     ((as)->a_flags &= ~AS_UNMAPWAIT)
 155      -#define AS_CLRBUSY(as)          ((as)->a_flags &= ~AS_BUSY)
 156  151  #define AS_CLRNOUNMAPWAIT(as)   ((as)->a_flags &= ~AS_NOUNMAPWAIT)
 157  152  
 158  153  #define AS_TYPE_64BIT(as)       \
 159  154              (((as)->a_userlimit > (caddr_t)UINT32_MAX) ? 1 : 0)
 160  155  
 161  156  /*
 162  157   * Flags for as_map/as_map_ansegs
 163  158   */
 164  159  #define AS_MAP_NO_LPOOB         ((uint_t)-1)
 165  160  #define AS_MAP_HEAP             ((uint_t)-2)
↓ open down ↓ 152 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX