pgalloc.h (05909cd9a0c8811731b38697af13075e8954314f) pgalloc.h (05cdf457477d6603b207d91873f0a3d4c7f8c1cd)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu>
4 * Copyright (C) 2008-2009 PetaLogix
5 * Copyright (C) 2006 Atmark Techno, Inc.
6 */
7
8#ifndef _ASM_MICROBLAZE_PGALLOC_H
9#define _ASM_MICROBLAZE_PGALLOC_H
10
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu>
4 * Copyright (C) 2008-2009 PetaLogix
5 * Copyright (C) 2006 Atmark Techno, Inc.
6 */
7
8#ifndef _ASM_MICROBLAZE_PGALLOC_H
9#define _ASM_MICROBLAZE_PGALLOC_H
10
11#ifdef CONFIG_MMU
12
13#include <linux/kernel.h> /* For min/max macros */
14#include <linux/highmem.h>
15#include <linux/pgtable.h>
16#include <asm/setup.h>
17#include <asm/io.h>
18#include <asm/page.h>
19#include <asm/cache.h>
20

--- 16 unchanged lines hidden (view full) ---

37#define __pte_free_tlb(tlb, pte, addr) pte_free((tlb)->mm, (pte))
38
39#define pmd_populate(mm, pmd, pte) \
40 (pmd_val(*(pmd)) = (unsigned long)page_address(pte))
41
42#define pmd_populate_kernel(mm, pmd, pte) \
43 (pmd_val(*(pmd)) = (unsigned long) (pte))
44
11#include <linux/kernel.h> /* For min/max macros */
12#include <linux/highmem.h>
13#include <linux/pgtable.h>
14#include <asm/setup.h>
15#include <asm/io.h>
16#include <asm/page.h>
17#include <asm/cache.h>
18

--- 16 unchanged lines hidden (view full) ---

35#define __pte_free_tlb(tlb, pte, addr) pte_free((tlb)->mm, (pte))
36
37#define pmd_populate(mm, pmd, pte) \
38 (pmd_val(*(pmd)) = (unsigned long)page_address(pte))
39
40#define pmd_populate_kernel(mm, pmd, pte) \
41 (pmd_val(*(pmd)) = (unsigned long) (pte))
42
45#endif /* CONFIG_MMU */
46
47#endif /* _ASM_MICROBLAZE_PGALLOC_H */
43#endif /* _ASM_MICROBLAZE_PGALLOC_H */