Subject: Re: kernel sources
To: None <gord@enci.ucalgary.ca>
From: Nathan Parrish <nparrish@maxine.cc.vt.edu>
List: port-pmax
Date: 04/17/1996 21:11:55
I really should have been taking notes all the while, but I suck.  sorry.
bear in mind also that I don't really know what I'm doing, I'm just faking
it.  But here's what I've found:

Quoth Gord Matzigkeit:
> 
> Hi, all!
> 
> Can somebody with CVS access commit some stable sources, (or point me
> to some) soon?  I'd like to build another kernel binary to try out,
> but I've been stuck with these errors (with sources supped from last
> night):
> 
> ../../../../arch/pmax/pmax/clock.c:101: #error RTC interrupt rate HZ not recognised; must be a power of 2

below this block of code, there is a block wherein HZ is defined.  move this
block up.

> ../../../../arch/pmax/dev/xcfb.c:117: pmax/dev/xcfbvar.h: No such file or directory

substitute reg for var (i.e. xcfbreg.h)

> ../../../../arch/pmax/pmax/pmax_trap.c:95: pmax/pmax/kn01var.h: No such file or directory
> ../../../../arch/pmax/pmax/mainbus.c:46: pmax/pmax/kn01var.h: No such file or directory

I believe you can safely remove the include statement for these two (then
again, I'm compiling for a maxine, not a 3100.

> ../../../../arch/pmax/pmax/cpu_cons.c:76: pmax/dev/lk201var.h: No such file or directory

lk201.h seems to work instead.

> ../../../../arch/pmax/pmax/cpu_cons.c:96: pmax/dev/dtopvar.h: No such file or directory
> ../../../../arch/pmax/pmax/cpu_cons.c:100: pmax/tc/sccvar.h: No such file or directory
> ../../../../arch/pmax/pmax/cpu_cons.c:104: pmax/dev/pmvar.h: No such file or directory
> ../../../../arch/pmax/pmax/cpu_cons.c:108: pmax/dev/xcfbvar.h: No such file or directory

I believe all of these have a *reg.h counterpart.

> mkdep -a -x assembler-with-cpp -traditional-cpp -D_LOCORE -I. -I../../../../arch -I../../../.. -DDS5000 -DDS5000_240 -DDS5000_100 -DDS5000_25 -DDS5000_200 -DDS3100 -DTIMEZONE="7*60" -DDST="1" -DSWAPPAGER -DVNODEPAGER -DDEVPAGER -DDEBUG -DCOMPAT_43 -DKTRACE -DNKMEMCLUSTERS=1024 -DFIFO -DFFS -DQUOTA -DMFS -DNFSCLIENT -DNFSSERVER -DKERNFS -DNULLFS -DINET -DTCP_COMPAT_42 -DCOMPAT_ULTRIX -D_KERNEL -Dpmax  
> gcc: Warning: `-x assembler-with-cpp' after last input file has no effect
> gcc: No input files

dunno about this.

right now the only unresolved reference I have left is a call to 
cpu_identify().  I cannot find this anywhere.  I've looked in the tarfile I 
made of what was left of my last attempt at a kernel and it wasn't there.  
the only reference to it is the template:
  extern void cpu_identify __P((void));
and the call:

cpuattach(parent, dev, aux)
        struct device *parent;
        struct device *dev;
        void *aux;
{
        printf("\n");
        printf(": ");
        cpu_identify();
}

any help would be much appreciated.  I'm sorry that I'm so sketchy on details.
if it would help, I would be willing to wipe out /usr/src/sys, pull down the
latest tarballs, and (with some help from someone who actually knows what they
are doing) try to determine where exactly there are inconsistencies.

-- 
Nathan Parrish
Computing Center of Virginia Tech
(540)231-9500