Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Aug 2018 14:52:56 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r337851 - in head/sys/arm: arm include
Message-ID:  <201808151452.w7FEquCq079477@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Wed Aug 15 14:52:56 2018
New Revision: 337851
URL: https://svnweb.freebsd.org/changeset/base/337851

Log:
  Remove ARM_HAVE_SUPERSECTIONS. It was only supported on some XScale CPUs.
  
  Sponsored by:	DARPA, AFRL

Modified:
  head/sys/arm/arm/pmap-v4.c
  head/sys/arm/include/pmap-v4.h

Modified: head/sys/arm/arm/pmap-v4.c
==============================================================================
--- head/sys/arm/arm/pmap-v4.c	Wed Aug 15 14:45:01 2018	(r337850)
+++ head/sys/arm/arm/pmap-v4.c	Wed Aug 15 14:52:56 2018	(r337851)
@@ -2369,36 +2369,6 @@ pmap_remove_pages(pmap_t pmap)
  * Low level mapping routines.....
  ***************************************************/
 
-#ifdef ARM_HAVE_SUPERSECTIONS
-/* Map a super section into the KVA. */
-
-void
-pmap_kenter_supersection(vm_offset_t va, uint64_t pa, int flags)
-{
-	pd_entry_t pd = L1_S_PROTO | L1_S_SUPERSEC | (pa & L1_SUP_FRAME) |
-	    (((pa >> 32) & 0xf) << 20) | L1_S_PROT(PTE_KERNEL,
-	    VM_PROT_READ|VM_PROT_WRITE) | L1_S_DOM(PMAP_DOMAIN_KERNEL);
-	struct l1_ttable *l1;
-	vm_offset_t va0, va_end;
-
-	KASSERT(((va | pa) & L1_SUP_OFFSET) == 0,
-	    ("Not a valid super section mapping"));
-	if (flags & SECTION_CACHE)
-		pd |= pte_l1_s_cache_mode;
-	else if (flags & SECTION_PT)
-		pd |= pte_l1_s_cache_mode_pt;
-	va0 = va & L1_SUP_FRAME;
-	va_end = va + L1_SUP_SIZE;
-	SLIST_FOREACH(l1, &l1_list, l1_link) {
-		va = va0;
-		for (; va < va_end; va += L1_S_SIZE) {
-			l1->l1_kva[L1_IDX(va)] = pd;
-			PTE_SYNC(&l1->l1_kva[L1_IDX(va)]);
-		}
-	}
-}
-#endif
-
 /* Map a section into the KVA. */
 
 void

Modified: head/sys/arm/include/pmap-v4.h
==============================================================================
--- head/sys/arm/include/pmap-v4.h	Wed Aug 15 14:45:01 2018	(r337850)
+++ head/sys/arm/include/pmap-v4.h	Wed Aug 15 14:52:56 2018	(r337851)
@@ -381,10 +381,6 @@ do {									\
 
 void	pmap_pte_init_generic(void);
 
-#if defined(CPU_XSCALE_81342)
-#define ARM_HAVE_SUPERSECTIONS
-#endif
-
 #define PTE_KERNEL	0
 #define PTE_USER	1
 #define	l1pte_valid(pde)	((pde) != 0)
@@ -433,10 +429,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);
-#ifdef ARM_HAVE_SUPERSECTIONS
-void	pmap_kenter_supersection(vm_offset_t, uint64_t, int flags);
-#endif
-
 void	pmap_postinit(void);
 
 #endif	/* _KERNEL */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808151452.w7FEquCq079477>