Subject: Re: New snapshot
To: Jonathan Stone <jonathan@DSG.Stanford.EDU>
From: Erik Bertelsen <erik@sockdev.uni-c.dk>
List: port-pmax
Date: 05/28/1997 13:10:53
On Tue, 27 May 1997, Jonathan Stone wrote:

.. Both -current and the kernel also include changes to the configuration
.. of the dc serial driver that allow the DS3100 config to build cleanly
.. (without undefined references to ds_ioasic code).  I don't yet have a
.. 3100. If someone could verify that -current kernel works on 3100s both
.. with and without serial consoles, that'd be great.

With todays SUP, i get a couple of compilation errors with my custom
DS3100 kernel (this is without serial console).

My q&d patches are:

Index: dev/dcvar.h
===================================================================
RCS file: /sw/cvs-base/src/sys/arch/pmax/dev/dcvar.h,v
retrieving revision 1.1.1.1
diff -r1.1.1.1 dcvar.h
40d39
< void dc_consinit __P((dev_t dev, dcregs *dcaddr));

This is to remove the following problem (this is not a suggested
solution !!)
cc  -O2 -Werror -mno-abicalls -mno-half-pic -I. -I../../../../arch
-I../../../.. -nostdinc -DSWAPPAGER -DVNODEPAGER -DDEVPAGER -DEXEC_ELF32
-DEXEC_SCRIPT -DCPU_R3000 -DDS3100 -DMIPS1 -DDIAGNOSTIC -DDEBUG
-DCOMPAT_43 -DKTRACE -DNKMEMCLUSTERS=1024 -DNTP -DFIFO -DFFS -DNFS
-DNFSSERVER -DNULLFS -DINET -DHZ=256 -DSYSVSHM -DSYSVSEM -DSYSVMSG
-DMAXUSERS=16 -D_KERNEL  -Dpmax -G 0  -c
../../../../arch/pmax/dev/qvss_compat.c
In file included from ../../../../arch/pmax/dev/qvss_compat.c:107:
../../../../arch/pmax/dev/dcvar.h:40: syntax error before `dcregs'
*** Error code 1


Index: dev/qvss_compat.c
===================================================================
RCS file: /sw/cvs-base/src/sys/arch/pmax/dev/qvss_compat.c,v
retrieving revision 1.1.1.3
diff -r1.1.1.3 qvss_compat.c
109a110,112
> extern void   (*dcMouseButtons) __P((int)); 
> extern void       (*dcMouseEvent) __P((int)); 
> extern void       (*dcDivertXInput) __P((int));

These function pointers are used, at least when NDC_IOASIC > 0. Again
this this patch is not a solution, just a quick hack to get it to compile
here & now.

Otherwise I'm running with this kernel.

regards
Erik Bertelsen