Subject: port-pmax/3965: model incorrect on some 5000/1xx machines
To: None <gnats-bugs@gnats.netbsd.org>
From: Simon Burge <simonb@telstra.com.au>
List: netbsd-bugs
Date: 08/11/1997 12:27:30
>Number:         3965
>Category:       port-pmax
>Synopsis:       model incorrect on some 5000/1xx machines
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 10 19:35:01 1997
>Last-Modified:
>Originator:     Simon Burge
>Organization:
	Telstra Corp.
>Release:        NetBSD-current 970811
>Environment:
System: NetBSD vlad 1.2G NetBSD 1.2G (MONA) #0: Fri Aug 8 23:36:18 EST 1997 simonb@vlad:/usr/src/sys/arch/pmax/compile/MONA pmax


>Description:
	The cpu_model variable is set to the wrong value on a
	5000/120, 125 and 133.
>How-To-Repeat:
	Boot a 5000/120, 125 or 133, or UTSL.
>Fix:
	Try the following patch, also the cpu_model could be printed
	out at some point as a cosmetic measure.

*** machdep.c.00	Sat Aug  9 21:18:00 1997
--- machdep.c	Mon Aug 11 11:32:48 1997
***************
*** 613,620 ****
  		    (u_int*)MIPS_PHYS_TO_KSEG1(KMIN_REG_TIMEOUT);
  		(*Mach_reset_addr) = 0;
  
! 		sprintf(cpu_model, (CPUISMIPS3)? "5000/1%d": "5000/%d",
! 			cpu_mhz);
  
  		/*
  		 * The kmin memory hardware seems to wrap  memory addresses
--- 613,619 ----
  		    (u_int*)MIPS_PHYS_TO_KSEG1(KMIN_REG_TIMEOUT);
  		(*Mach_reset_addr) = 0;
  
! 		sprintf(cpu_model, "5000/1%d", cpu_mhz);
  
  		/*
  		 * The kmin memory hardware seems to wrap  memory addresses
>Audit-Trail:
>Unformatted: