svn commit: r233776 - head/sys/mips/mips

Jayachandran C. jchandra at FreeBSD.org
Mon Apr 2 11:41:34 UTC 2012


Author: jchandra
Date: Mon Apr  2 11:41:33 2012
New Revision: 233776
URL: http://svn.freebsd.org/changeset/base/233776

Log:
  Reinstate the XTLB handler for CPU_NLM and CPU_RMI
  
  These platforms set the KX bit even when booted in 32 bit mode. So
  the XLTB handler is needed even when __mips_n64 is not defined.

Modified:
  head/sys/mips/mips/machdep.c

Modified: head/sys/mips/mips/machdep.c
==============================================================================
--- head/sys/mips/mips/machdep.c	Mon Apr  2 11:27:20 2012	(r233775)
+++ head/sys/mips/mips/machdep.c	Mon Apr  2 11:41:33 2012	(r233776)
@@ -346,7 +346,7 @@ mips_vector_init(void)
 	bcopy(MipsTLBMiss, (void *)MIPS_UTLB_MISS_EXC_VEC,
 	      MipsTLBMissEnd - MipsTLBMiss);
 
-#ifdef __mips_n64
+#if defined(__mips_n64) || defined(CPU_RMI) || defined(CPU_NLM)
 	bcopy(MipsTLBMiss, (void *)MIPS_XTLB_MISS_EXC_VEC,
 	      MipsTLBMissEnd - MipsTLBMiss);
 #endif


More information about the svn-src-head mailing list