Module Name:    src
Committed By:   nonaka
Date:           Sat May 16 10:17:39 UTC 2009

Modified Files:
        src/sys/arch/evbsh3/evbsh3: machdep.c

Log Message:
Added SH7706, SH7750R, SH7751 and SH7751R support.


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 src/sys/arch/evbsh3/evbsh3/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbsh3/evbsh3/machdep.c
diff -u src/sys/arch/evbsh3/evbsh3/machdep.c:1.67 src/sys/arch/evbsh3/evbsh3/machdep.c:1.68
--- src/sys/arch/evbsh3/evbsh3/machdep.c:1.67	Wed Mar 18 10:22:28 2009
+++ src/sys/arch/evbsh3/evbsh3/machdep.c	Sat May 16 10:17:38 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.67 2009/03/18 10:22:28 cegger Exp $	*/
+/*	$NetBSD: machdep.c,v 1.68 2009/05/16 10:17:38 nonaka Exp $	*/
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.67 2009/03/18 10:22:28 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.68 2009/05/16 10:17:38 nonaka Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -237,6 +237,8 @@
 	sh_cpu_init(CPU_ARCH_SH3, CPU_PRODUCT_7709);
 #elif defined(SH7709A)
 	sh_cpu_init(CPU_ARCH_SH3, CPU_PRODUCT_7709A);
+#elif defined(SH7706)
+	sh_cpu_init(CPU_ARCH_SH3, CPU_PRODUCT_7706);
 #else
 #error "unsupported SH3 variants"
 #endif
@@ -245,6 +247,12 @@
 	sh_cpu_init(CPU_ARCH_SH4, CPU_PRODUCT_7750);	
 #elif defined(SH7750S)
 	sh_cpu_init(CPU_ARCH_SH4, CPU_PRODUCT_7750S);
+#elif defined(SH7750R)
+	sh_cpu_init(CPU_ARCH_SH4, CPU_PRODUCT_7750R);
+#elif defined(SH7751)
+	sh_cpu_init(CPU_ARCH_SH4, CPU_PRODUCT_7751);
+#elif defined(SH7751R)
+	sh_cpu_init(CPU_ARCH_SH4, CPU_PRODUCT_7751R);
 #else
 #error "unsupported SH4 variants"
 #endif
@@ -268,7 +276,7 @@
 	/* Initialize pmap and start to address translation */
 	pmap_bootstrap();
 
-#	/*
+	/*
 	 * XXX We can't return here, because we change stack pointer.
 	 *     So jump to return address directly.
 	 */
@@ -706,10 +714,14 @@
 		break;
 	case CPU_PRODUCT_7709:
 	case CPU_PRODUCT_7709A:
+	case CPU_PRODUCT_7706:
 		evtcode = _reg_read_4(SH7709_INTEVT2);
 		break;
 	case CPU_PRODUCT_7750:
 	case CPU_PRODUCT_7750S:
+	case CPU_PRODUCT_7750R:
+	case CPU_PRODUCT_7751:
+	case CPU_PRODUCT_7751R:
 		evtcode = _reg_read_4(SH4_INTEVT);
 		break;
 	default:

Reply via email to