Nicolas Pitre | 5f0fbf9 | 2008-09-16 13:05:53 -0400 | [diff] [blame] | 1 | #ifndef _ASM_FIXMAP_H |
| 2 | #define _ASM_FIXMAP_H |
| 3 | |
Liu Hua | a05e54c | 2014-04-18 09:43:32 +0100 | [diff] [blame] | 4 | #define FIXADDR_START 0xffc00000UL |
Rob Herring | 836a241 | 2014-07-02 02:01:15 -0500 | [diff] [blame] | 5 | #define FIXADDR_END 0xfff00000UL |
Mark Salter | b615bbb | 2014-08-13 09:04:49 -0700 | [diff] [blame] | 6 | #define FIXADDR_TOP (FIXADDR_END - PAGE_SIZE) |
Nicolas Pitre | 5f0fbf9 | 2008-09-16 13:05:53 -0400 | [diff] [blame] | 7 | |
Mark Salter | b615bbb | 2014-08-13 09:04:49 -0700 | [diff] [blame] | 8 | #include <asm/kmap_types.h> |
Nicolas Pitre | 5f0fbf9 | 2008-09-16 13:05:53 -0400 | [diff] [blame] | 9 | |
Mark Salter | b615bbb | 2014-08-13 09:04:49 -0700 | [diff] [blame] | 10 | enum fixed_addresses { |
| 11 | FIX_KMAP_BEGIN, |
| 12 | FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_TYPE_NR * NR_CPUS) - 1, |
Nicolas Pitre | 5f0fbf9 | 2008-09-16 13:05:53 -0400 | [diff] [blame] | 13 | |
Rabin Vincent | ab0615e | 2014-04-24 23:28:57 +0200 | [diff] [blame] | 14 | /* Support writing RO kernel text via kprobes, jump labels, etc. */ |
| 15 | FIX_TEXT_POKE0, |
| 16 | FIX_TEXT_POKE1, |
| 17 | |
Mark Salter | b615bbb | 2014-08-13 09:04:49 -0700 | [diff] [blame] | 18 | __end_of_fixed_addresses |
| 19 | }; |
Nicolas Pitre | 5f0fbf9 | 2008-09-16 13:05:53 -0400 | [diff] [blame] | 20 | |
Kees Cook | 99b4ac9 | 2014-04-04 23:27:49 +0200 | [diff] [blame] | 21 | void __set_fixmap(enum fixed_addresses idx, phys_addr_t phys, pgprot_t prot); |
| 22 | |
Mark Salter | b615bbb | 2014-08-13 09:04:49 -0700 | [diff] [blame] | 23 | #include <asm-generic/fixmap.h> |
Nicolas Pitre | 5f0fbf9 | 2008-09-16 13:05:53 -0400 | [diff] [blame] | 24 | |
| 25 | #endif |