summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include
diff options
context:
space:
mode:
authorjhibbits <jhibbits@FreeBSD.org>2015-07-04 19:00:38 +0000
committerjhibbits <jhibbits@FreeBSD.org>2015-07-04 19:00:38 +0000
commitce6959baeb3e18d94c715ab309cf2e66192d3708 (patch)
treef00c6b35ae5574e3963f4747a2454441b9622391 /sys/powerpc/include
parent5bb6cc922befd55376911ec9427b7a5036ee050f (diff)
downloadFreeBSD-src-ce6959baeb3e18d94c715ab309cf2e66192d3708.zip
FreeBSD-src-ce6959baeb3e18d94c715ab309cf2e66192d3708.tar.gz
Use the correct type for physical addresses.
On Book-E, physical addresses are actually 36-bits, not 32-bits. This is currently worked around by ignoring the top bits. However, in some cases, the boot loader configures CCSR to something above the 32-bit mark. This is stage 1 in updating the pmap to handle 36-bit physaddr.
Diffstat (limited to 'sys/powerpc/include')
-rw-r--r--sys/powerpc/include/pte.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/powerpc/include/pte.h b/sys/powerpc/include/pte.h
index fde152c..b3e103a 100644
--- a/sys/powerpc/include/pte.h
+++ b/sys/powerpc/include/pte.h
@@ -210,7 +210,7 @@ typedef struct lpte lpte_t;
*/
#ifndef LOCORE
struct pte {
- vm_offset_t rpn;
+ vm_paddr_t rpn;
uint32_t flags;
};
typedef struct pte pte_t;
@@ -273,5 +273,5 @@ typedef struct pte pte_t;
#define PTE_ISMODIFIED(pte) ((pte)->flags & PTE_MODIFIED)
#define PTE_ISREFERENCED(pte) ((pte)->flags & PTE_REFERENCED)
-#endif /* BOOKE_PPC4XX */
+#endif /* BOOKE */
#endif /* _MACHINE_PTE_H_ */
OpenPOWER on IntegriCloud