summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include/pmap.h
diff options
context:
space:
mode:
authorandreast <andreast@FreeBSD.org>2013-12-11 22:00:03 +0000
committerandreast <andreast@FreeBSD.org>2013-12-11 22:00:03 +0000
commit7990e5891f29734b09ef3c96c6c96e5b021305b0 (patch)
treeba3122cec4c0abf36dc26ed81dbe0f426c43995b /sys/powerpc/include/pmap.h
parent3deab847d6c7d8855b618abdd86270038b352a91 (diff)
downloadFreeBSD-src-7990e5891f29734b09ef3c96c6c96e5b021305b0.zip
FreeBSD-src-7990e5891f29734b09ef3c96c6c96e5b021305b0.tar.gz
MFC r259007
Increase PHYS_AVAIL_SZ because on pSeries machines we can have many logical regions which represent the total amount of memory. The size of these regions is not the physical size of the chip but it is a logical one and it is given by the OpenFirmware, it is selectable at boot time and varies between 16MB and 256MB in my case. There is an 'automatic' option which would select the size as 64MB in case you have around 16GB of RAM. To make sure we can allocate RAM with the automatic option bump this value of PHYS_AVAIL_SZ to 256.
Diffstat (limited to 'sys/powerpc/include/pmap.h')
-rw-r--r--sys/powerpc/include/pmap.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/powerpc/include/pmap.h b/sys/powerpc/include/pmap.h
index f50ff11..4b1f4f6 100644
--- a/sys/powerpc/include/pmap.h
+++ b/sys/powerpc/include/pmap.h
@@ -240,7 +240,11 @@ boolean_t pmap_mmu_install(char *name, int prio);
#define vtophys(va) pmap_kextract((vm_offset_t)(va))
-#define PHYS_AVAIL_SZ 128
+#define PHYS_AVAIL_SZ 256 /* Allows up to 16GB Ram on pSeries with
+ * logical memory block size of 64MB.
+ * For more Ram increase the lmb or this value.
+ */
+
extern vm_offset_t phys_avail[PHYS_AVAIL_SZ];
extern vm_offset_t virtual_avail;
extern vm_offset_t virtual_end;
OpenPOWER on IntegriCloud