svn commit: r295071 - head/sys/arm/arm

Michal Meloun mmel at FreeBSD.org
Sat Jan 30 12:23:29 UTC 2016


Author: mmel
Date: Sat Jan 30 12:23:28 2016
New Revision: 295071
URL: https://svnweb.freebsd.org/changeset/base/295071

Log:
  ARM: Cleanup mp_machdep.c. SMP is supported only on ARMv6 and later.

Modified:
  head/sys/arm/arm/mp_machdep.c

Modified: head/sys/arm/arm/mp_machdep.c
==============================================================================
--- head/sys/arm/arm/mp_machdep.c	Sat Jan 30 11:10:22 2016	(r295070)
+++ head/sys/arm/arm/mp_machdep.c	Sat Jan 30 12:23:28 2016	(r295071)
@@ -156,7 +156,6 @@ init_secondary(int cpu)
 #ifndef ARM_INTRNG
 	int start = 0, end = 0;
 #endif
-#if __ARM_ARCH >= 6
 	uint32_t actlr_mask, actlr_set;
 
 	pmap_set_tex();
@@ -168,11 +167,6 @@ init_secondary(int cpu)
 	set_stackptrs(cpu);
 
 	enable_interrupts(PSR_A);
-#else /* __ARM_ARCH >= 6 */
-	cpu_setup();
-	setttb(pmap_pa);
-	cpu_tlb_flushID();
-#endif /* __ARM_ARCH >= 6 */
 	pc = &__pcpu[cpu];
 
 	/*
@@ -184,10 +178,6 @@ init_secondary(int cpu)
 
 	pcpu_init(pc, cpu, sizeof(struct pcpu));
 	dpcpu_init(dpcpu[cpu - 1], cpu);
-#if __ARM_ARCH < 6
-	/* Provide stack pointers for other processor modes. */
-	set_stackptrs(cpu);
-#endif
 	/* Signal our startup to BSP */
 	atomic_add_rel_32(&mp_naps, 1);
 


More information about the svn-src-all mailing list