Print this page
9208 hati_demap_func should take pagesize into account
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Tim Kordas <tim.kordas@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/vm/hat_pte.h
          +++ new/usr/src/uts/i86pc/vm/hat_pte.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  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 2007 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
       24 + * Copyright 2017 Joyent, Inc.  All rights reserved.
  24   25   */
  25   26  
  26   27  #ifndef _VM_HAT_PTE_H
  27   28  #define _VM_HAT_PTE_H
  28   29  
  29   30  #ifdef  __cplusplus
  30   31  extern "C" {
  31   32  #endif
  32   33  
  33   34  #include <sys/types.h>
↓ open down ↓ 97 lines elided ↑ open up ↑
 131  132   * future processors.
 132  133   *
 133  134   * The type of "level_t" is signed so that it can be used like:
 134  135   *      level_t l;
 135  136   *      ...
 136  137   *      while (--l >= 0)
 137  138   *              ...
 138  139   */
 139  140  #define MAX_NUM_LEVEL           4
 140  141  #define MAX_PAGE_LEVEL          2
      142 +#define MIN_PAGE_LEVEL          0
 141  143  typedef int8_t level_t;
 142  144  #define LEVEL_SHIFT(l)  (mmu.level_shift[l])
 143  145  #define LEVEL_SIZE(l)   (mmu.level_size[l])
 144  146  #define LEVEL_OFFSET(l) (mmu.level_offset[l])
 145  147  #define LEVEL_MASK(l)   (mmu.level_mask[l])
 146  148  
 147  149  /*
 148  150   * Macros to:
 149  151   * Check for a PFN above 4Gig and 64Gig for 32 bit PAE support
 150  152   */
↓ open down ↓ 151 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX