diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2018-08-15 14:57:34 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2018-08-15 14:57:34 +0000 |
commit | d8ba426351df957b4257bb9ffe9792a3571e6da0 (patch) | |
tree | cda76658a6b6caed438352031da90c72fd251ed0 | |
parent | f0a51d9df4d89c8d5d9777090ae5ec3e2202acb2 (diff) | |
download | src-test2-d8ba426351df957b4257bb9ffe9792a3571e6da0.tar.gz src-test2-d8ba426351df957b4257bb9ffe9792a3571e6da0.zip |
Notes
-rw-r--r-- | sys/arm/arm/pmap-v4.c | 19 | ||||
-rw-r--r-- | sys/arm/include/pmap-v4.h | 1 |
2 files changed, 0 insertions, 20 deletions
diff --git a/sys/arm/arm/pmap-v4.c b/sys/arm/arm/pmap-v4.c index d88e11869abd..6470227fe379 100644 --- a/sys/arm/arm/pmap-v4.c +++ b/sys/arm/arm/pmap-v4.c @@ -2371,25 +2371,6 @@ pmap_remove_pages(pmap_t pmap) /* Map a section into the KVA. */ -void -pmap_kenter_section(vm_offset_t va, vm_offset_t pa, int flags) -{ - pd_entry_t pd = L1_S_PROTO | pa | L1_S_PROT(PTE_KERNEL, - VM_PROT_READ|VM_PROT_WRITE) | L1_S_DOM(PMAP_DOMAIN_KERNEL); - struct l1_ttable *l1; - - KASSERT(((va | pa) & L1_S_OFFSET) == 0, - ("Not a valid section mapping")); - if (flags & SECTION_CACHE) - pd |= pte_l1_s_cache_mode; - else if (flags & SECTION_PT) - pd |= pte_l1_s_cache_mode_pt; - SLIST_FOREACH(l1, &l1_list, l1_link) { - l1->l1_kva[L1_IDX(va)] = pd; - PTE_SYNC(&l1->l1_kva[L1_IDX(va)]); - } -} - /* * Make a temporary mapping for a physical address. This is only intended * to be used for panic dumps. diff --git a/sys/arm/include/pmap-v4.h b/sys/arm/include/pmap-v4.h index bf59a40e55ca..9e2e14d03230 100644 --- a/sys/arm/include/pmap-v4.h +++ b/sys/arm/include/pmap-v4.h @@ -428,7 +428,6 @@ void vector_page_setprot(int); #define SECTION_CACHE 0x1 #define SECTION_PT 0x2 -void pmap_kenter_section(vm_offset_t, vm_paddr_t, int flags); void pmap_postinit(void); #endif /* _KERNEL */ |