hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/microblaze/include/asm/fixmap.h
....@@ -1,9 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0 */
12 /*
23 * 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.
74 *
85 * Copyright (C) 1998 Ingo Molnar
96 *
....@@ -23,7 +20,7 @@
2320 #include <asm/page.h>
2421 #ifdef CONFIG_HIGHMEM
2522 #include <linux/threads.h>
26
-#include <asm/kmap_types.h>
23
+#include <asm/kmap_size.h>
2724 #endif
2825
2926 #define FIXADDR_TOP ((unsigned long)(-PAGE_SIZE))
....@@ -50,7 +47,7 @@
5047 FIX_HOLE,
5148 #ifdef CONFIG_HIGHMEM
5249 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,
5451 #endif
5552 __end_of_fixed_addresses
5653 };