Subject: Re: problem compiling machdep.c
To: Helge MEINHARD, Chorus, CERN-ECP <meinhard@afsmail.cern.ch>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
List: port-pmax
Date: 07/17/1995 06:05:09
[[pmax kernel doesn't build]]

Oops. 

The following change is what I use.  I'm not sure if it's
stylistically correct, which is probably why it never got checked in.
I think ``(vm-offset_t)'' is probably a better fix than ``(u_long)''

*** machdep.c.DIST	Tue May 30 05:43:10 1995
--- machdep.c.dsg	Tue Jun 27 14:52:55 1995
***************
*** 542,548 ****
  	 * Find out how much memory is available.
  	 * Be careful to save and restore the original contents for msgbuf.
  	 */
! 	physmem = btoc(v - KERNBASE);
  	cp = (char *)MACH_PHYS_TO_UNCACHED(physmem << PGSHIFT);
  	while (cp < (char *)MACH_MAX_MEM_ADDR) {
  		if (badaddr(cp, 4))
--- 545,551 ----
  	 * Find out how much memory is available.
  	 * Be careful to save and restore the original contents for msgbuf.
  	 */
! 	physmem = btoc((u_long)v - KERNBASE);
  	cp = (char *)MACH_PHYS_TO_UNCACHED(physmem << PGSHIFT);
  	while (cp < (char *)MACH_MAX_MEM_ADDR) {
  		if (badaddr(cp, 4))