atom feed9 messages in org.freebsd.freebsd-ia64Re: Maxmem should be bytes ?
FromSent OnAttachments
Arun SharmaFeb 7, 2003 5:11 pm 
Arun SharmaFeb 13, 2003 4:17 pm 
Marcel MoolenaarFeb 13, 2003 4:23 pm 
Arun SharmaFeb 13, 2003 4:46 pm 
Marcel MoolenaarFeb 13, 2003 5:02 pm 
Arun SharmaFeb 14, 2003 5:35 pm 
Marcel MoolenaarFeb 14, 2003 6:16 pm 
Arun SharmaFeb 15, 2003 11:00 am 
Marcel MoolenaarFeb 15, 2003 12:58 pm 
Subject:Re: Maxmem should be bytes ?
From:Arun Sharma (arun@intel.com)
Date:Feb 14, 2003 5:35:39 pm
List:org.freebsd.freebsd-ia64

Marcel Moolenaar <mar@xcllnt.net> writes:

New code that tries to use ia64_ptob(Maxmem) for something other than VHPT sizing would be broken.

Like machdep.c:164?

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 equal.

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); init_param2(physmem);

/*

i386 does something equivalent.

-Arun

To Unsubscribe: send mail to majo@FreeBSD.org with "unsubscribe freebsd-ia64" in the body of the message