/usr/src/linux-headers-5.15.0-190/arch/csky/include/asm
NameSizeModeActions
vdso/-0755rm
addrspace.h2310644editdlrm
asid.h24400644editdlrm
barrier.h25330644editdlrm
bitops.h13630644editdlrm
bug.h5650644editdlrm
cache.h8610644editdlrm
cacheflush.h1930644editdlrm
checksum.h9440644editdlrm
clocksource.h1590644editdlrm
cmpxchg.h18240644editdlrm
elf.h27230644editdlrm
fixmap.h7470644editdlrm
ftrace.h5580644editdlrm
futex.h26050644editdlrm
highmem.h11140644editdlrm
io.h13840644editdlrm
irqflags.h11320644editdlrm
irq_work.h2080644editdlrm
Kbuild1990644editdlrm
kprobes.h11580644editdlrm
memory.h6570644editdlrm
mmu.h2160644editdlrm
mmu_context.h9590644editdlrm
page.h27570644editdlrm
pci.h6800644editdlrm
perf_event.h3590644editdlrm
pgalloc.h16570644editdlrm
pgtable.h69850644editdlrm
probes.h5540644editdlrm
processor.h25250644editdlrm
ptrace.h24760644editdlrm
reg_ops.h3820644editdlrm
seccomp.h2830644editdlrm
segment.h1870644editdlrm
shmparam.h1970644editdlrm
smp.h6260644editdlrm
spinlock.h18920644editdlrm
spinlock_types.h5040644editdlrm
stackprotector.h7050644editdlrm
string.h2330644editdlrm
switch_to.h9230644editdlrm
syscall.h15630644editdlrm
syscalls.h3510644editdlrm
tcm.h6650644editdlrm
thread_info.h28660644editdlrm
tlb.h5080644editdlrm
tlbflush.h8240644editdlrm
traps.h7960644editdlrm
uaccess.h52710644editdlrm
unistd.h1060644editdlrm
uprobes.h6690644editdlrm
vdso.h7840644editdlrm
vmalloc.h900644editdlrm
Edit: /usr/src/linux-headers-5.15.0-190/arch/csky/include/asm/pgalloc.h (1657B)
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_PGALLOC_H #define __ASM_CSKY_PGALLOC_H #include #include #include #define __HAVE_ARCH_PTE_ALLOC_ONE_KERNEL #include static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte) { set_pmd(pmd, __pmd(__pa(pte))); } static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, pgtable_t pte) { set_pmd(pmd, __pmd(__pa(page_address(pte)))); } extern void pgd_init(unsigned long *p); static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm) { pte_t *pte; unsigned long i; pte = (pte_t *) __get_free_page(GFP_KERNEL); if (!pte) return NULL; for (i = 0; i < PAGE_SIZE/sizeof(pte_t); i++) (pte + i)->pte_low = _PAGE_GLOBAL; return pte; } static inline pgd_t *pgd_alloc(struct mm_struct *mm) { pgd_t *ret; pgd_t *init; ret = (pgd_t *) __get_free_pages(GFP_KERNEL, PGD_ORDER); if (ret) { init = pgd_offset(&init_mm, 0UL); pgd_init((unsigned long *)ret); memcpy(ret + USER_PTRS_PER_PGD, init + USER_PTRS_PER_PGD, (PTRS_PER_PGD - USER_PTRS_PER_PGD) * sizeof(pgd_t)); /* prevent out of order excute */ smp_mb(); #ifdef CONFIG_CPU_NEED_TLBSYNC dcache_wb_range((unsigned int)ret, (unsigned int)(ret + PTRS_PER_PGD)); #endif } return ret; } #define __pte_free_tlb(tlb, pte, address) \ do { \ pgtable_pte_page_dtor(pte); \ tlb_remove_page(tlb, pte); \ } while (0) extern void pagetable_init(void); extern void mmu_init(unsigned long min_pfn, unsigned long max_pfn); extern void pre_trap_init(void); #endif /* __ASM_CSKY_PGALLOC_H */