Subject: port-i386/2019: More complete messages for cpu class lowering
To: None <gnats-bugs@NetBSD.ORG>
From: Michael Graff <explorer@flame.org>
List: netbsd-bugs
Date: 02/04/1996 16:33:10
>Number:         2019
>Category:       port-i386
>Synopsis:       More complete messages for cpu class lowering
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Feb  4 17:50:02 1996
>Last-Modified:
>Originator:     Michael Graff
>Organization:
flame.org:  yes, we do know everything
>Release:        02-Feb-1996 <NetBSD-current source date>
>Environment:
	
System: NetBSD packrat.flame.org 1.1A NetBSD 1.1A (PACKRAT) #1: Fri Feb 2 02:38:21 CST 1996 explorer@packrat.flame.org:/usr/src/sys/arch/i386/compile/PACKRAT i386


>Description:
When the CPU class is lowered from i586 -> i486 or i486 -> i386, the
message given is somewhat misleading unless one has the source at hand and
can read it.  I propose a more detailed message.
	
>How-To-Repeat:
	N.A.
	
>Fix:

Apply the following small patch to /sys/arch/i386/i386/machdep.c:

Index: machdep.c
===================================================================
RCS file: /local/source/netbsd/src/sys/arch/i386/i386/machdep.c,v
retrieving revision 1.1.1.4
diff -c -r1.1.1.4 machdep.c
*** 1.1.1.4	1996/02/02 01:18:12
--- machdep.c	1996/02/04 22:28:54
***************
*** 403,409 ****
  #ifndef I586_CPU
  	case CPUCLASS_586:
  #ifdef I486_CPU
! 		printf("NOTICE: lowering CPU class to i486\n");
  		cpu_class = CPUCLASS_486;
  		break;
  #endif
--- 403,409 ----
  #ifndef I586_CPU
  	case CPUCLASS_586:
  #ifdef I486_CPU
! 		printf("NOTICE: lowering CPU class to i486 (i586 support not compiled into kernel)\n");
  		cpu_class = CPUCLASS_486;
  		break;
  #endif
***************
*** 411,417 ****
  #ifndef I486_CPU
  	case CPUCLASS_486:
  #ifdef I386_CPU
! 		printf("NOTICE: lowering CPU class to i386\n");
  		cpu_class = CPUCLASS_386;
  		break;
  #endif
--- 411,417 ----
  #ifndef I486_CPU
  	case CPUCLASS_486:
  #ifdef I386_CPU
! 		printf("NOTICE: lowering CPU class to i386 (i486 support not compiled into kernel)\n");
  		cpu_class = CPUCLASS_386;
  		break;
  #endif
>Audit-Trail:
>Unformatted: