arm64: Replace cpu_tlb_flushID in initarm
Replace cpu_tlb_flushID with pmap_s1_invalidate_all_kernel in initarm. They are identical in the SMP case. Reviewed by: alc Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D52184
This commit is contained in:
@@ -858,7 +858,7 @@ initarm(struct arm64_bootparams *abp)
|
||||
|
||||
cninit();
|
||||
set_ttbr0(abp->kern_ttbr0);
|
||||
cpu_tlb_flushID();
|
||||
pmap_s1_invalidate_all_kernel();
|
||||
|
||||
if (!valid)
|
||||
panic("Invalid bus configuration: %s",
|
||||
|
||||
@@ -201,8 +201,6 @@ __exclusive_cache_line static struct pmap_large_md_page pv_dummy_large;
|
||||
#define pv_dummy pv_dummy_large.pv_page
|
||||
__read_mostly static struct pmap_large_md_page *pv_table;
|
||||
|
||||
static __inline void pmap_s1_invalidate_all_kernel(void);
|
||||
|
||||
static struct pmap_large_md_page *
|
||||
_pa_to_pmdp(vm_paddr_t pa)
|
||||
{
|
||||
@@ -1963,7 +1961,7 @@ pmap_invalidate_range(pmap_t pmap, vm_offset_t sva, vm_offset_t eva,
|
||||
pmap_s2_invalidate_range(pmap, sva, eva, final_only);
|
||||
}
|
||||
|
||||
static __inline void
|
||||
void
|
||||
pmap_s1_invalidate_all_kernel(void)
|
||||
{
|
||||
dsb(ishst);
|
||||
|
||||
@@ -175,6 +175,8 @@ int pmap_fault(pmap_t, uint64_t, uint64_t);
|
||||
|
||||
struct pcb *pmap_switch(struct thread *);
|
||||
|
||||
void pmap_s1_invalidate_all_kernel(void);
|
||||
|
||||
extern void (*pmap_clean_stage2_tlbi)(void);
|
||||
extern void (*pmap_stage2_invalidate_range)(uint64_t, vm_offset_t, vm_offset_t,
|
||||
bool);
|
||||
|
||||
Reference in New Issue
Block a user