.. | .. |
---|
1 | | -// SPDX-License-Identifier: GPL-2.0 |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0 */ |
---|
2 | 2 | // Copyright (C) 2005-2017 Andes Technology Corporation |
---|
3 | 3 | |
---|
4 | 4 | #ifndef __ASM_NDS32_FIXMAP_H |
---|
.. | .. |
---|
6 | 6 | |
---|
7 | 7 | #ifdef CONFIG_HIGHMEM |
---|
8 | 8 | #include <linux/threads.h> |
---|
9 | | -#include <asm/kmap_types.h> |
---|
| 9 | +#include <asm/kmap_size.h> |
---|
10 | 10 | #endif |
---|
11 | 11 | |
---|
12 | 12 | enum fixed_addresses { |
---|
.. | .. |
---|
14 | 14 | FIX_KMAP_RESERVED, |
---|
15 | 15 | FIX_KMAP_BEGIN, |
---|
16 | 16 | #ifdef CONFIG_HIGHMEM |
---|
17 | | - FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_TYPE_NR * NR_CPUS), |
---|
| 17 | + FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_MAX_IDX * NR_CPUS) - 1, |
---|
18 | 18 | #endif |
---|
19 | 19 | FIX_EARLYCON_MEM_BASE, |
---|
20 | 20 | __end_of_fixed_addresses |
---|