| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0 */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * fixmap.h: compile-time virtual memory allocation |
|---|
| 3 | | - * |
|---|
| 4 | | - * This file is subject to the terms and conditions of the GNU General Public |
|---|
| 5 | | - * License. See the file "COPYING" in the main directory of this archive |
|---|
| 6 | | - * for more details. |
|---|
| 7 | 4 | * |
|---|
| 8 | 5 | * Copyright (C) 1998 Ingo Molnar |
|---|
| 9 | 6 | * |
|---|
| .. | .. |
|---|
| 23 | 20 | #include <asm/page.h> |
|---|
| 24 | 21 | #ifdef CONFIG_HIGHMEM |
|---|
| 25 | 22 | #include <linux/threads.h> |
|---|
| 26 | | -#include <asm/kmap_types.h> |
|---|
| 23 | +#include <asm/kmap_size.h> |
|---|
| 27 | 24 | #endif |
|---|
| 28 | 25 | |
|---|
| 29 | 26 | #define FIXADDR_TOP ((unsigned long)(-PAGE_SIZE)) |
|---|
| .. | .. |
|---|
| 50 | 47 | FIX_HOLE, |
|---|
| 51 | 48 | #ifdef CONFIG_HIGHMEM |
|---|
| 52 | 49 | FIX_KMAP_BEGIN, /* reserved pte's for temporary kernel mappings */ |
|---|
| 53 | | - FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_TYPE_NR * num_possible_cpus()) - 1, |
|---|
| 50 | + FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_MAX_IDX * num_possible_cpus()) - 1, |
|---|
| 54 | 51 | #endif |
|---|
| 55 | 52 | __end_of_fixed_addresses |
|---|
| 56 | 53 | }; |
|---|