Go to the documentation of this file.
18 #ifndef _ASM_HIGHMEM_H
19 #define _ASM_HIGHMEM_H
25 #include <asm/kmap_types.h>
26 #include <asm/pgtable.h>
42 #define LAST_PKMAP 1024
43 #define PKMAP_SIZE (LAST_PKMAP << PAGE_SHIFT)
44 #define PKMAP_BASE PMD_ALIGN(SRMMU_NOCACHE_VADDR + (SRMMU_MAX_NOCACHE_PAGES << PAGE_SHIFT))
46 #define LAST_PKMAP_MASK (LAST_PKMAP - 1)
47 #define PKMAP_NR(virt) ((virt - PKMAP_BASE) >> PAGE_SHIFT)
48 #define PKMAP_ADDR(nr) (PKMAP_BASE + ((nr) << PAGE_SHIFT))
50 #define PKMAP_END (PKMAP_ADDR(LAST_PKMAP))
58 if (!PageHighMem(page))
63 static inline void kunmap(
struct page *page)
66 if (!PageHighMem(page))
74 #define flush_cache_kmaps() flush_cache_all()