| .. | .. |
|---|
| 13 | 13 | #ifndef _ASM_FIXMAP_H |
|---|
| 14 | 14 | #define _ASM_FIXMAP_H |
|---|
| 15 | 15 | |
|---|
| 16 | | -#include <asm/pgtable.h> |
|---|
| 17 | 16 | #ifdef CONFIG_HIGHMEM |
|---|
| 18 | 17 | #include <linux/threads.h> |
|---|
| 19 | | -#include <asm/kmap_types.h> |
|---|
| 18 | +#include <linux/pgtable.h> |
|---|
| 19 | +#include <asm/kmap_size.h> |
|---|
| 20 | 20 | #endif |
|---|
| 21 | 21 | |
|---|
| 22 | 22 | /* |
|---|
| .. | .. |
|---|
| 39 | 39 | /* reserved pte's for temporary kernel mappings */ |
|---|
| 40 | 40 | FIX_KMAP_BEGIN, |
|---|
| 41 | 41 | FIX_KMAP_END = FIX_KMAP_BEGIN + |
|---|
| 42 | | - (KM_TYPE_NR * NR_CPUS * DCACHE_N_COLORS) - 1, |
|---|
| 42 | + (KM_MAX_IDX * NR_CPUS * DCACHE_N_COLORS) - 1, |
|---|
| 43 | 43 | #endif |
|---|
| 44 | 44 | __end_of_fixed_addresses |
|---|
| 45 | 45 | }; |
|---|
| .. | .. |
|---|
| 75 | 75 | } |
|---|
| 76 | 76 | |
|---|
| 77 | 77 | #endif |
|---|
| 78 | | - |
|---|
| 79 | | -#define kmap_get_fixmap_pte(vaddr) \ |
|---|
| 80 | | - pte_offset_kernel( \ |
|---|
| 81 | | - pmd_offset(pud_offset(pgd_offset_k(vaddr), (vaddr)), (vaddr)), \ |
|---|
| 82 | | - (vaddr) \ |
|---|
| 83 | | - ) |
|---|
| 84 | 78 | |
|---|
| 85 | 79 | #endif |
|---|