/* * linux/arch/unicore32/mm/mm.h * * Code specific to PKUnity SoC and UniCore ISA * * Copyright (C) 2001-2010 GUAN Xue-tao * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. *//* the upper-most page table pointer */externpmd_t*top_pmd;externintsysctl_overcommit_memory;#define TOP_PTE(x) pte_offset_kernel(top_pmd, x)staticinlinepmd_t*pmd_off(pgd_t*pgd,unsignedlongvirt){returnpmd_offset((pud_t*)pgd,virt);}staticinlinepmd_t*pmd_off_k(unsignedlongvirt){returnpmd_off(pgd_offset_k(virt),virt);}structmem_type{unsignedintprot_pte;unsignedintprot_l1;unsignedintprot_sect;};conststructmem_type*get_mem_type(unsignedinttype);externvoid__flush_dcache_page(structaddress_space*,structpage*);void__initbootmem_init(void);voiduc32_mm_memblock_reserve(void);