svn commit: r232457 - projects/armv6/sys/arm/arm

Olivier Houchard cognet at FreeBSD.org
Sat Mar 3 12:27:53 UTC 2012


Author: cognet
Date: Sat Mar  3 12:27:53 2012
New Revision: 232457
URL: http://svn.freebsd.org/changeset/base/232457

Log:
  Try to set the SMP and the TLB broadcasting bits in the aux register
  (largely a nop on the omap4 because both bits are already set, and we
   can't change it anyway because we're not running in secure mode)

Modified:
  projects/armv6/sys/arm/arm/cpufunc.c

Modified: projects/armv6/sys/arm/arm/cpufunc.c
==============================================================================
--- projects/armv6/sys/arm/arm/cpufunc.c	Sat Mar  3 12:23:07 2012	(r232456)
+++ projects/armv6/sys/arm/arm/cpufunc.c	Sat Mar  3 12:27:53 2012	(r232457)
@@ -2322,7 +2322,6 @@ cortexa_setup(char *args)
 	cpuctrl = CPU_CONTROL_MMU_ENABLE |
 	    CPU_CONTROL_IC_ENABLE |
 	    CPU_CONTROL_DC_ENABLE |
-	    CPU_CONTROL_V6_EXTPAGE |
 	    CPU_CONTROL_BPRD_ENABLE;
 	
 #ifndef ARM32_DISABLE_ALIGNMENT_FAULTS
@@ -2347,6 +2346,9 @@ cortexa_setup(char *args)
 	
 	/* And again. */
 	cpu_idcache_wbinv_all();
+#ifdef SMP
+	armv7_auxctrl((1 << 6) | (1 << 0), (1 << 6) | (1 << 0)); /* Enable SMP + TLB broadcasting  */
+#endif
 }
 #endif  /* CPU_CORTEXA */
 


More information about the svn-src-projects mailing list