Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v5.6 41 lines 993 B view raw
1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * linux/arch/unicore32/mm/mm.h 4 * 5 * Code specific to PKUnity SoC and UniCore ISA 6 * 7 * Copyright (C) 2001-2010 GUAN Xue-tao 8 */ 9#include <asm/hwdef-copro.h> 10 11/* the upper-most page table pointer */ 12extern pmd_t *top_pmd; 13extern int sysctl_overcommit_memory; 14 15#define TOP_PTE(x) pte_offset_kernel(top_pmd, x) 16 17static inline pmd_t *pmd_off(pgd_t *pgd, unsigned long virt) 18{ 19 return pmd_offset((pud_t *)pgd, virt); 20} 21 22static inline pmd_t *pmd_off_k(unsigned long virt) 23{ 24 return pmd_off(pgd_offset_k(virt), virt); 25} 26 27struct mem_type { 28 unsigned int prot_pte; 29 unsigned int prot_l1; 30 unsigned int prot_sect; 31}; 32 33const struct mem_type *get_mem_type(unsigned int type); 34 35extern void __flush_dcache_page(struct address_space *, struct page *); 36extern void hook_fault_code(int nr, int (*fn) 37 (unsigned long, unsigned int, struct pt_regs *), 38 int sig, int code, const char *name); 39 40void __init bootmem_init(void); 41void uc32_mm_memblock_reserve(void);