Subject: Problems with latest SUP
To: None <amiga@NetBSD.ORG>
From: David Jones <dej@achilles.net>
List: amiga
Date: 05/11/1996 22:41:08
I have just compiled a kernel, after a long period of not supping...

Problems with the latest sources:

The Hydra ethernet driver doesn't configure quite right.  The interface
name as seen by "ifconfig -a" is "0", not "ed0".  That is, I can
"ifconfig 0 192.168.0.1" and it will work!  No fix.


Comment out reference to 060sp in Makefile.amiga, at least until the 060sp
shows up in the respository.

pmap.c: replace two ordered pointer comparisons with !=
- current version warns about ordered comparisons between pointer and zero,
  and warnings are treated as errors.
- I'm not sure if the following patch is correct, but it seems to work:

*** pmap.c.old	Sat May 11 14:14:19 1996
--- pmap.c	Sat May 11 14:15:10 1996
***************
*** 1780,1786 ****
  		do {
  			if (pv->pv_ptste && pv->pv_ptpmap == pmap_kernel())
  				break;
! 		} while ((pv = pv->pv_next) > 0);
  		if (pv == NULL)
  			continue;
  #ifdef DEBUG
--- 1780,1786 ----
  		do {
  			if (pv->pv_ptste && pv->pv_ptpmap == pmap_kernel())
  				break;
! 		} while ((pv = pv->pv_next) != 0);
  		if (pv == NULL)
  			continue;
  #ifdef DEBUG
***************
*** 2403,2409 ****
  		do {
  			if (pv->pv_pmap == pmap_kernel() && pv->pv_va == va)
  				break;
! 		} while ((pv = pv->pv_next) > 0);
  	}
  #ifdef DEBUG
  	if (pv == NULL) {
--- 2403,2409 ----
  		do {
  			if (pv->pv_pmap == pmap_kernel() && pv->pv_va == va)
  				break;
! 		} while ((pv = pv->pv_next) != 0);
  	}
  #ifdef DEBUG
  	if (pv == NULL) {

trap.c: remove a use of mmudebug that was not properly #ifdef'ed DEBUG
- I reported this once before.  Something needs to be done to check
  the use if #ifdefs if source maintainers insist on compiling with
  DEBUG.
Patch:

*** trap.c.old	Sat May 11 14:19:32 1996
--- trap.c	Sat May 11 08:04:21 1996
***************
*** 1,4 ****
! /*	$NetBSD: trap.c,v 1.46 1996/05/09 20:30:51 is Exp $	*/
  
  /*
   * Copyright (c) 1988 University of Utah.
--- 1,4 ----
! /*	$NetBSD: trap.c,v 1.47 1996/05/10 14:31:08 is Exp $	*/
  
  /*
   * Copyright (c) 1988 University of Utah.
***************
*** 280,288 ****
  	struct proc *p;
  	u_quad_t sticks;
  {
  	static u_int oldcode=0, oldv=0;
  	static struct proc *oldp=0;
! 
  	extern vm_map_t kernel_map;
  	struct vmspace *vm = NULL;
  	vm_prot_t ftype;
--- 280,289 ----
  	struct proc *p;
  	u_quad_t sticks;
  {
+ #if defined(DEBUG) && defined(M68060)
  	static u_int oldcode=0, oldv=0;
  	static struct proc *oldp=0;
! #endif
  	extern vm_map_t kernel_map;
  	struct vmspace *vm = NULL;
  	vm_prot_t ftype;
***************
*** 547,557 ****
  			return;
  	}
  #endif
  	if (mmudebug & 2)
  	printf("trap: t %x c %x v %x pad %x adj %x sr %x pc %x fmt %x vc %x\n",
  	    type, code, v, frame.f_pad, frame.f_stackadj, frame.f_sr,
  	    frame.f_pc, frame.f_format, frame.f_vector);
! 
  	switch (type) {
  	default:
  		panictrap(type, code, v, &frame);
--- 548,559 ----
  			return;
  	}
  #endif
+ #ifdef DEBUG
  	if (mmudebug & 2)
  	printf("trap: t %x c %x v %x pad %x adj %x sr %x pc %x fmt %x vc %x\n",
  	    type, code, v, frame.f_pad, frame.f_stackadj, frame.f_sr,
  	    frame.f_pc, frame.f_format, frame.f_vector);
! #endif
  	switch (type) {
  	default:
  		panictrap(type, code, v, &frame);