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>

@@ -19,10 +19,11 @@
  * CDDL HEADER END
  */
 /*
  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
+ * Copyright 2017 Joyent, Inc.  All rights reserved.
  */
 
 #ifndef _VM_HAT_PTE_H
 #define _VM_HAT_PTE_H
 

@@ -136,10 +137,11 @@
  *      while (--l >= 0)
  *              ...
  */
 #define MAX_NUM_LEVEL           4
 #define MAX_PAGE_LEVEL          2
+#define MIN_PAGE_LEVEL          0
 typedef int8_t level_t;
 #define LEVEL_SHIFT(l)  (mmu.level_shift[l])
 #define LEVEL_SIZE(l)   (mmu.level_size[l])
 #define LEVEL_OFFSET(l) (mmu.level_offset[l])
 #define LEVEL_MASK(l)   (mmu.level_mask[l])