ARM: Cleanup mp_machdep.c. SMP is supported only on ARMv6 and later.
This commit is contained in:
parent
4edd31fc71
commit
3753ce3c75
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user