Subject: Kernel debugger fix
To: None <amiga-dev@NetBSD.ORG>
From: Niklas Hallqvist <niklas@appli.se>
List: amiga-dev
Date: 01/03/1995 03:06:30
Hi!

I don't know if this has been fixed since X-mas but if not here goes:
Since late oct. the kernel debugger has triggered a kernel jump to
zero.  This is due to a new console function called cnpollc.  If a
console doesn't implement a dedicated such function it should use
nullcnpollc.  No amiga consoles have been converted to this scheme.
The fix is simple, just use the enclosed patch.

Niklas

Niklas Hallqvist	Phone: +46-(0)31-40 75 00
Applitron Datasystem	Fax:   +46-(0)31-83 39 50
Molndalsvagen 95	Email: niklas@appli.se
S-412 63  GOTEBORG	WWW:   Here
Sweden


===================================================================
RCS file: /home2/CVSROOT/NetBSD/sys/arch/amiga/amiga/conf.c,v
retrieving revision 1.1.1.1.2.20
diff -c -r1.1.1.1.2.20 conf.c
*** 1.1.1.1.2.20	1994/12/15 23:34:04
--- conf.c	1995/01/02 23:58:23
***************
*** 763,776 ****
  
  struct	consdev constab[] = {
  #if NSER > 0
! 	{ sercnprobe,	sercninit,	sercngetc,	sercnputc },
  #endif
  #if NITE > 0
! 	{ ite_cnprobe,	ite_cninit,	ite_cngetc,	ite_cnputc },
  #endif
  	{ 0 },
};
--- 781,794 ----
  
  struct	consdev constab[] = {
  #if NSER > 0
! 	{ sercnprobe,	sercninit,	sercngetc,	sercnputc,	nullcnpollc },
  #endif
  #if NITE > 0
! 	{ ite_cnprobe,	ite_cninit,	ite_cngetc,	ite_cnputc,	nullcnpollc },
  #endif
  	{ 0 },
};
===================================================================
RCS file: /home2/CVSROOT/NetBSD/sys/dev/cons.h,v
retrieving revision 1.1.1.1.2.2
diff -c -r1.1.1.1.2.2 cons.h
*** 1.1.1.1.2.2	1994/11/29 15:57:49
--- cons.h	1995/01/02 23:59:49
***************
*** 62,67 ****
--- 62,68 ----
  #define	CONSMAJOR	0
  
  #ifdef KERNEL
+ extern	void nullcnpollc();
  extern	struct consdev constab[];
  extern	struct consdev *cn_tab;
  #endif