Subject: port-mips/15894: Support for an R4400 revision is missing
To: None <gnats-bugs@gnats.netbsd.org>
From: None <Thilo.Manske@HEH.Uni-Oldenburg.DE>
List: netbsd-bugs
Date: 03/13/2002 14:04:39
>Number:         15894
>Category:       port-mips
>Synopsis:       Support for an R4400 revision is missing
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    port-mips-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 13 05:05:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Thilo Manske
>Release:        NetBSD 1.5ZB
>Organization:
Dies ist Thilos Unix Signature! Viel Spass damit.
>Environment:
NetBSD Ina 1.5ZB NetBSD 1.5ZB (Ina) #30: Wed Mar 13 13:47:07 MET 2002     thilo@Ina:/usr/src/sys/arch/sgimips/compile/Ina sgimips

Architecture: mips
Machine: sgimips
>Description:
After the MIPS cleanup/rototill from last week NetBSD/sgimips refuses to detect
my R4400:

panic: CPU type (0x460) not supported

>How-To-Repeat:
>Fix:
--- sys/arch/mips/include/cpuregs.h.orig	Wed Mar  6 14:07:57 2002
+++ sys/arch/mips/include/cpuregs.h	Wed Mar 13 13:19:58 2002
@@ -716,6 +716,7 @@
 #define	MIPS_REV_R4000_B	0x30
 #define	MIPS_REV_R4400_A	0x40
 #define	MIPS_REV_R4400_B	0x50
+#define	MIPS_REV_R4400_C	0x60
 
 /*
  * CPU processor revision IDs for company ID == 1 (MIPS)
--- sys/arch/mips/mips/mips_machdep.c.orig	Tue Mar 12 13:37:24 2002
+++ sys/arch/mips/mips/mips_machdep.c	Wed Mar 13 13:20:32 2002
@@ -259,6 +259,8 @@
 	  CPU_MIPS_R4K_MMU,			"MIPS R4400 CPU"	},
 	{ 0, MIPS_R4000, MIPS_REV_R4400_B,	CPU_ARCH_MIPS3, 48,
 	  CPU_MIPS_R4K_MMU,			"MIPS R4400 CPU"	},
+	{ 0, MIPS_R4000, MIPS_REV_R4400_C,	CPU_ARCH_MIPS3, 48,
+	  CPU_MIPS_R4K_MMU,			"MIPS R4400 CPU"	},
 
 	{ 0, MIPS_R3LSI, -1,			CPU_ARCH_MIPS1, -1,
 	  MIPS_NOT_SUPP,			"LSI Logic R3000 derivative" },
>Release-Note:
>Audit-Trail:
>Unformatted: