Path: blob/master/arch/microblaze/include/asm/pgalloc.h
26442 views
/* SPDX-License-Identifier: GPL-2.0 */1/*2* Copyright (C) 2008-2009 Michal Simek <[email protected]>3* Copyright (C) 2008-2009 PetaLogix4* Copyright (C) 2006 Atmark Techno, Inc.5*/67#ifndef _ASM_MICROBLAZE_PGALLOC_H8#define _ASM_MICROBLAZE_PGALLOC_H910#include <linux/kernel.h> /* For min/max macros */11#include <linux/highmem.h>12#include <linux/pgtable.h>13#include <asm/setup.h>14#include <asm/io.h>15#include <asm/page.h>16#include <asm/cache.h>1718#define __HAVE_ARCH_PTE_ALLOC_ONE_KERNEL19#include <asm-generic/pgalloc.h>2021extern void __bad_pte(pmd_t *pmd);2223#define pgd_alloc(mm) __pgd_alloc(mm, 0)2425extern pte_t *pte_alloc_one_kernel(struct mm_struct *mm);2627#define __pte_free_tlb(tlb, pte, addr) pte_free((tlb)->mm, (pte))2829#define pmd_populate(mm, pmd, pte) \30(pmd_val(*(pmd)) = (unsigned long)page_address(pte))3132#define pmd_populate_kernel(mm, pmd, pte) \33(pmd_val(*(pmd)) = (unsigned long) (pte))3435#endif /* _ASM_MICROBLAZE_PGALLOC_H */363738