summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include
diff options
context:
space:
mode:
authorjhibbits <jhibbits@FreeBSD.org>2016-02-16 02:13:55 +0000
committerjhibbits <jhibbits@FreeBSD.org>2016-02-16 02:13:55 +0000
commit60370dfaf5f91c13b3d3acbda0dc9da058779d0e (patch)
treef7be3f9a1e080032bb21ce39a9de723598cd83c7 /sys/powerpc/include
parent6943e659c079f7524b7ada835d0dda9991ca4ae1 (diff)
downloadFreeBSD-src-60370dfaf5f91c13b3d3acbda0dc9da058779d0e.zip
FreeBSD-src-60370dfaf5f91c13b3d3acbda0dc9da058779d0e.tar.gz
Fix a panic bug that cropped up in the PTE rewrite.
PTE was getting overwritten by just the flags. Pointy-hat to: jhibbits
Diffstat (limited to 'sys/powerpc/include')
-rw-r--r--sys/powerpc/include/pte.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/powerpc/include/pte.h b/sys/powerpc/include/pte.h
index 7108072..8cbd70b 100644
--- a/sys/powerpc/include/pte.h
+++ b/sys/powerpc/include/pte.h
@@ -270,6 +270,7 @@ typedef uint64_t pte_t;
/* Macro argument must of pte_t type. */
#define PTE_ARPN_SHIFT 12
+#define PTE_FLAGS_MASK 0x00ffffff
#define PTE_RPN_FROM_PA(pa) (((pa) & ~PAGE_MASK) << PTE_ARPN_SHIFT)
#define PTE_PA(pte) ((vm_paddr_t)(*pte >> PTE_ARPN_SHIFT) & ~PAGE_MASK)
#define PTE_ISVALID(pte) ((*pte) & PTE_VALID)
OpenPOWER on IntegriCloud