}
EXPORT_SYMBOL(get_mem_type);
-/*
- * If the system supports huge pages and we are running with short descriptors,
- * then compute the pmd and linux pte prot values for a huge page.
- *
- * These values are used by both the HugeTLB and THP code.
- */
-#if defined(CONFIG_SYS_SUPPORTS_HUGETLBFS) && !defined(CONFIG_ARM_LPAE)
-pmdval_t arm_hugepmdprotval;
-EXPORT_SYMBOL(arm_hugepmdprotval);
-
-pteval_t arm_hugepteprotval;
-EXPORT_SYMBOL(arm_hugepteprotval);
-#endif
-
-
/*
* Adjust the PMD section entries according to the CPU in use.
*/
if (t->prot_sect)
t->prot_sect |= PMD_DOMAIN(t->domain);
}
-
-#if defined(CONFIG_SYS_SUPPORTS_HUGETLBFS) && !defined(CONFIG_ARM_LPAE)
- /*
- * we assume all huge pages are user pages and that hardware access
- * flag updates are disabled (i.e. SCTLR.AFE == 0b).
- */
- arm_hugepteprotval = mem_types[MT_MEMORY].prot_pte | L_PTE_USER | L_PTE_VALID;
-
- arm_hugepmdprotval = mem_types[MT_MEMORY].prot_sect | PMD_SECT_AP_READ
- | PMD_SECT_nG;
-
- /* HACK: make huge pages WT
- * XXX: mm will not know nothing about this..
- * FIXME: should only do it on Cortex-A8 or below */
- arm_hugepmdprotval &= ~(PMD_SECT_WB | PMD_SECT_TEX(1));
- arm_hugepmdprotval |= PMD_SECT_WT;
-#endif
-
}
#ifdef CONFIG_ARM_DMA_MEM_BUFFERABLE