Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jul 2006 11:07:32 GMT
From:      "Wojciech A. Koszek" <wkoszek@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 100860 for review
Message-ID:  <200607071107.k67B7WSH090991@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100860

Change 100860 by wkoszek@wkoszek_laptop on 2006/07/07 11:07:28

	Comment some things in src/sys/mips/mips/cpu.c because they're
	causing problems for now.

Affected files ...

.. //depot/projects/mips2/src/sys/mips/mips/cpu.c#2 edit

Differences ...

==== //depot/projects/mips2/src/sys/mips/mips/cpu.c#2 (text+ko) ====

@@ -38,7 +38,14 @@
 
 #include <machine/cache.h>
 #include <machine/cpufunc.h>
+/*
+ * XXXMIPS: This shoud me intr_machdep.h
+ */
+#if 0
 #include <machine/intr.h>
+#endif
+#include <machine/intr_machdep.h>
+
 #include <machine/locore.h>
 #include <machine/pte.h>
 #include <machine/tlb.h>
@@ -49,6 +56,11 @@
  */
 int mips_num_tlb_entries, cpu_id, fpu_id;
 
+/*
+ * XXXMIPS: CHange format strings.
+ * Uncomment this one once VECI macro defined below is uncommented.
+ */
+#if 0
 static void
 mips_vector_install(vm_offset_t addr, char *begin, char *end)
 {
@@ -56,7 +68,6 @@
 
 	max = 0x80;
 	len = end - begin;
-
 	if (len > max)
 		panic("exception code too big for vector %lx", addr);
 	if (len == max)
@@ -65,6 +76,7 @@
 		printf("Exception vector at %lx almost out of space\n", addr);
 	memcpy((void *)addr, begin, len);
 }
+#endif
 
 #define	VEC(class)	extern char class ## Vector[], class ## VectorEnd[]
 
@@ -80,18 +92,28 @@
 
 #undef	VEC
 
+/*
+ * XXXMIPS: error : large integer implicitly truncated to unsigned type
+ */
 static void
 mips_vector_init(void)
 {
+	
 #define	VECI(vec, class)	mips_vector_install(MIPS_ ## vec ## _EXC_VEC, \
 						    class ## Vector, \
 						    class ## VectorEnd)
+/* XXXMIPS */
+#if 0
 	VECI(UTLB_MISS, TLBMiss);
 	VECI(XTLB_MISS, XTLBMiss);
 	VECI(CACHE_ERR, Cache);
 	VECI(GEN, Exception);
+#endif
 #undef	VECI
+/* XXXMIPS */
+#if 0
 	mips_wr_status(mips_rd_status() & ~MIPS_SR_BEV);
+#endif
 }
 
 /*
@@ -302,7 +324,13 @@
 		device_printf(child, "could not activate irq\n");
 		return (error);
 	}
+	/*
+	 * XXXMIPS: error: structure has no member named `r_start'
+	 */
+#if 0
 	intr = res->r_start;
+#endif
+	intr = 0;
 
 	cpu_establish_hardintr(intr, handler, arg);
 	device_printf(child, "established CPU interrupt %d\n", intr);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607071107.k67B7WSH090991>