hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/sh/include/asm/fixmap.h
....@@ -1,9 +1,6 @@
1
-/*
2
- * fixmap.h: compile-time virtual memory allocation
1
+/* SPDX-License-Identifier: GPL-2.0
32 *
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.
3
+ * fixmap.h: compile-time virtual memory allocation
74 *
85 * Copyright (C) 1998 Ingo Molnar
96 *
....@@ -16,9 +13,6 @@
1613 #include <linux/kernel.h>
1714 #include <linux/threads.h>
1815 #include <asm/page.h>
19
-#ifdef CONFIG_HIGHMEM
20
-#include <asm/kmap_types.h>
21
-#endif
2216
2317 /*
2418 * Here we define all the compile-time 'special' virtual
....@@ -56,11 +50,6 @@
5650 FIX_CMAP_BEGIN,
5751 FIX_CMAP_END = FIX_CMAP_BEGIN + (FIX_N_COLOURS * NR_CPUS) - 1,
5852
59
-#ifdef CONFIG_HIGHMEM
60
- FIX_KMAP_BEGIN, /* reserved pte's for temporary kernel mappings */
61
- FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_TYPE_NR * NR_CPUS) - 1,
62
-#endif
63
-
6453 #ifdef CONFIG_IOREMAP_FIXED
6554 /*
6655 * FIX_IOREMAP entries are useful for mapping physical address
....@@ -86,11 +75,7 @@
8675 * the start of the fixmap, and leave one page empty
8776 * at the top of mem..
8877 */
89
-#ifdef CONFIG_SUPERH32
9078 #define FIXADDR_TOP (P4SEG - PAGE_SIZE)
91
-#else
92
-#define FIXADDR_TOP ((unsigned long)(-PAGE_SIZE))
93
-#endif
9479 #define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT)
9580 #define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE)
9681