--- zzzz-none-000/linux-3.10.107/arch/arm/mm/mm.h 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/arm/mm/mm.h 2021-02-04 17:41:59.000000000 +0000 @@ -2,6 +2,8 @@ #include #include +#include + /* the upper-most page table pointer */ extern pmd_t *top_pmd; @@ -38,6 +40,7 @@ struct mem_type { pteval_t prot_pte; + pteval_t prot_pte_s2; pmdval_t prot_l1; pmdval_t prot_sect; unsigned int domain; @@ -81,8 +84,10 @@ #ifdef CONFIG_ZONE_DMA extern phys_addr_t arm_dma_limit; +extern unsigned long arm_dma_pfn_limit; #else #define arm_dma_limit ((phys_addr_t)~0) +#define arm_dma_pfn_limit (~0ul >> PAGE_SHIFT) #endif extern phys_addr_t arm_lowmem_limit; @@ -90,3 +95,5 @@ void __init bootmem_init(void); void arm_mm_memblock_reserve(void); void dma_contiguous_remap(void); + +unsigned long __clear_cr(unsigned long mask);