12 #ifndef _ASM_HIGHMEM_H
13 #define _ASM_HIGHMEM_H
20 #include <asm/kmap_types.h>
21 #include <asm/pgtable.h>
40 #define PKMAP_BASE 0xfe000000UL
41 #define LAST_PKMAP 1024
42 #define LAST_PKMAP_MASK (LAST_PKMAP - 1)
43 #define PKMAP_NR(virt) ((virt - PKMAP_BASE) >> PAGE_SHIFT)
44 #define PKMAP_ADDR(nr) (PKMAP_BASE + ((nr) << PAGE_SHIFT))
53 if (page < highmem_start_page)
58 static inline void kunmap(
struct page *page)
62 if (page < highmem_start_page)
73 static inline unsigned long kmap_atomic(
struct page *page)
79 if (page < highmem_start_page)
82 type = kmap_atomic_idx_push();
104 type = kmap_atomic_idx();
123 kmap_atomic_idx_pop();