/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_HIGHMEM_H #define _ASM_HIGHMEM_H #include <asm/cacheflush.h> #include <asm/kmap_types.h> #include <asm/fixmap.h> /* * Right now we initialize only a single pte table. It can be extended * easily, subsequent pte tables have to be allocated in one physical * chunk of RAM. */ /* * Ordering is (from lower to higher memory addresses): * * high_memory * Persistent kmap area * PKMAP_BASE * fixed_addresses * FIXADDR_START * FIXADDR_TOP * Vmalloc area * VMALLOC_START * VMALLOC_END */ #define PKMAP_BASE (FIXADDR_START - PMD_SIZE) #define LAST_PKMAP PTRS_PER_PTE #define LAST_PKMAP_MASK (LAST_PKMAP - 1) #define PKMAP_NR(virt) (((virt) - PKMAP_BASE) >> PAGE_SHIFT) #define PKMAP_ADDR(nr) (PKMAP_BASE + ((nr) << PAGE_SHIFT)) #define kmap_prot PAGE_KERNEL
static inline void flush_cache_kmaps(void) { flush_cache_all(); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
James Hogan | 12 | 100.00% | 1 | 100.00% |
Total | 12 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
James Hogan | 159 | 99.38% | 1 | 50.00% |
Greg Kroah-Hartman | 1 | 0.62% | 1 | 50.00% |
Total | 160 | 100.00% | 2 | 100.00% |