Marcel Moolenaar <mar...@xcllnt.net> writes:
New code that tries to use ia64_ptob(Maxmem) for something other than
VHPT sizing would be broken.
printf("real memory = %ld (%ld MB)\n", ia64_ptob(Maxmem),
ia64_ptob(Maxmem) / 1048576);
This one is ok, because it's before line 598. Any code executed after
line 598 would be broken.
As for the fact that Maxmem is in bytes and physmem isn't: we define
Maxmem to be equal to physmem (machdep.c:598). So they are in fact
All I'm saying is:
--- machdep.c.old Fri Feb 14 17:32:26 2003
+++ machdep.c Fri Feb 14 17:33:22 2003
@@ -595,7 +595,7 @@
phys_avail[phys_avail_cnt] = 0;
- Maxmem = physmem;
+ Maxmem = ia64_ptob(physmem);
i386 does something equivalent.
To Unsubscribe: send mail to majo...@FreeBSD.org
with "unsubscribe freebsd-ia64" in the body of the message