On Fri, Feb 14, 2003 at 06:16:42PM -0800, Marcel Moolenaar wrote:
i386 does something equivalent.
Your patch changes the granularity for Maxmem from pages to bytes.
On all architectures it should be pages. On i386 you see atop(),
which is the opposite of ia64_ptob().
Ah, you're right. I saw one incorrect usage of Maxmem and assumed that
Maxmem should be in bytes. So only necessary change then is:
--- pmap.c- Sat Feb 15 09:47:50 2003
+++ pmap.c Sat Feb 15 09:48:15 2003
@@ -363,7 +363,7 @@
* enough sparse, causing us to (try to) create a huge VHPT.
vhpt_size = 15;
- while ((1<<vhpt_size) < ia64_btop(Maxmem) * 32)
+ while ((1<<vhpt_size) < (Maxmem * 32))
vhpt_base = 0;
To Unsubscribe: send mail to majo...@FreeBSD.org
with "unsubscribe freebsd-ia64" in the body of the message