.. | .. |
---|
1 | | -/* |
---|
2 | | - * fixmap.h: compile-time virtual memory allocation |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0 |
---|
3 | 2 | * |
---|
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 |
---|
7 | 4 | * |
---|
8 | 5 | * Copyright (C) 1998 Ingo Molnar |
---|
9 | 6 | * |
---|
.. | .. |
---|
16 | 13 | #include <linux/kernel.h> |
---|
17 | 14 | #include <linux/threads.h> |
---|
18 | 15 | #include <asm/page.h> |
---|
19 | | -#ifdef CONFIG_HIGHMEM |
---|
20 | | -#include <asm/kmap_types.h> |
---|
21 | | -#endif |
---|
22 | 16 | |
---|
23 | 17 | /* |
---|
24 | 18 | * Here we define all the compile-time 'special' virtual |
---|
.. | .. |
---|
56 | 50 | FIX_CMAP_BEGIN, |
---|
57 | 51 | FIX_CMAP_END = FIX_CMAP_BEGIN + (FIX_N_COLOURS * NR_CPUS) - 1, |
---|
58 | 52 | |
---|
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 | | - |
---|
64 | 53 | #ifdef CONFIG_IOREMAP_FIXED |
---|
65 | 54 | /* |
---|
66 | 55 | * FIX_IOREMAP entries are useful for mapping physical address |
---|
.. | .. |
---|
86 | 75 | * the start of the fixmap, and leave one page empty |
---|
87 | 76 | * at the top of mem.. |
---|
88 | 77 | */ |
---|
89 | | -#ifdef CONFIG_SUPERH32 |
---|
90 | 78 | #define FIXADDR_TOP (P4SEG - PAGE_SIZE) |
---|
91 | | -#else |
---|
92 | | -#define FIXADDR_TOP ((unsigned long)(-PAGE_SIZE)) |
---|
93 | | -#endif |
---|
94 | 79 | #define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT) |
---|
95 | 80 | #define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE) |
---|
96 | 81 | |
---|