arm64: dts: Revert "specify console via command line"
[linux/fpc-iii.git] / arch / unicore32 / mm / mm.h
blob27127abc95fb9d7c96b997e61a3a9998a4cd0088
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * linux/arch/unicore32/mm/mm.h
5 * Code specific to PKUnity SoC and UniCore ISA
7 * Copyright (C) 2001-2010 GUAN Xue-tao
8 */
9 #include <asm/hwdef-copro.h>
11 /* the upper-most page table pointer */
12 extern pmd_t *top_pmd;
13 extern int sysctl_overcommit_memory;
15 #define TOP_PTE(x) pte_offset_kernel(top_pmd, x)
17 static inline pmd_t *pmd_off(pgd_t *pgd, unsigned long virt)
19 return pmd_offset((pud_t *)pgd, virt);
22 static inline pmd_t *pmd_off_k(unsigned long virt)
24 return pmd_off(pgd_offset_k(virt), virt);
27 struct mem_type {
28 unsigned int prot_pte;
29 unsigned int prot_l1;
30 unsigned int prot_sect;
33 const struct mem_type *get_mem_type(unsigned int type);
35 extern void __flush_dcache_page(struct address_space *, struct page *);
36 extern void hook_fault_code(int nr, int (*fn)
37 (unsigned long, unsigned int, struct pt_regs *),
38 int sig, int code, const char *name);
40 void __init bootmem_init(void);
41 void uc32_mm_memblock_reserve(void);