mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 22:33:39 +00:00
Remove hard-coded mappings related to Armada XP support
Armada XP initialization flow requires SoC registers to be mapped very early in order to configure Snoop Filter for SMP. Additional mapping in locore.S is redundant as proper mapping is made in pmap_devmap_bootstrap() prior to calling cpu_setup() which configures the Snoop Filter. For secondaru CPUs it is better to pass VA of the SoC registers defined in MV_BASE and PA consistent with the value in the Device Tree. Tested by: kevlo
This commit is contained in:
parent
69eb2b176c
commit
77f3266653
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257278
|
@ -266,10 +266,6 @@ mmu_init_table:
|
|||
/* map VA 0xc0000000..0xc3ffffff to PA */
|
||||
MMU_INIT(KERNBASE, PHYSADDR, 64, L1_TYPE_S|L1_SHARED|L1_S_C|L1_S_AP(AP_KRW))
|
||||
MMU_INIT(0x48000000, 0x48000000, 1, L1_TYPE_S|L1_SHARED|L1_S_C|L1_S_AP(AP_KRW))
|
||||
#if defined(CPU_MV_PJ4B)
|
||||
/* map VA 0xf1000000..0xf1100000 to PA 0xd0000000 */
|
||||
MMU_INIT(0xf1000000, 0xd0000000, 1, L1_TYPE_S|L1_SHARED|L1_S_B|L1_S_AP(AP_KRW))
|
||||
#endif /* CPU_MV_PJ4B */
|
||||
#endif /* SMP */
|
||||
.word 0 /* end of table */
|
||||
#endif
|
||||
|
|
|
@ -52,6 +52,10 @@ __FBSDID("$FreeBSD$");
|
|||
#ifdef VFP
|
||||
#include <machine/vfp.h>
|
||||
#endif
|
||||
#ifdef CPU_MV_PJ4B
|
||||
#include <arm/mv/mvwin.h>
|
||||
#include <dev/fdt/fdt_common.h>
|
||||
#endif
|
||||
|
||||
#include "opt_smp.h"
|
||||
|
||||
|
@ -131,8 +135,8 @@ cpu_mp_start(void)
|
|||
|
||||
#if defined(CPU_MV_PJ4B)
|
||||
/* Add ARMADAXP registers required for snoop filter initialization */
|
||||
((int *)(temp_pagetable_va))[0xf1000000 >> L1_S_SHIFT] =
|
||||
L1_TYPE_S|L1_SHARED|L1_S_B|L1_S_AP(AP_KRW)|0xd0000000;
|
||||
((int *)(temp_pagetable_va))[MV_BASE >> L1_S_SHIFT] =
|
||||
L1_TYPE_S|L1_SHARED|L1_S_B|L1_S_AP(AP_KRW)|fdt_immr_pa;
|
||||
#endif
|
||||
|
||||
temp_pagetable = (void*)(vtophys(temp_pagetable_va));
|
||||
|
|
Loading…
Reference in a new issue