diff options
Diffstat (limited to 'arch/arm/include/asm/fixmap.h')
-rw-r--r-- | arch/arm/include/asm/fixmap.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/arch/arm/include/asm/fixmap.h b/arch/arm/include/asm/fixmap.h index 0415eae1df27..58cfe9f1a687 100644 --- a/arch/arm/include/asm/fixmap.h +++ b/arch/arm/include/asm/fixmap.h | |||
@@ -6,9 +6,13 @@ | |||
6 | #define FIXADDR_TOP (FIXADDR_END - PAGE_SIZE) | 6 | #define FIXADDR_TOP (FIXADDR_END - PAGE_SIZE) |
7 | 7 | ||
8 | #include <asm/kmap_types.h> | 8 | #include <asm/kmap_types.h> |
9 | #include <asm/pgtable.h> | ||
9 | 10 | ||
10 | enum fixed_addresses { | 11 | enum fixed_addresses { |
11 | FIX_KMAP_BEGIN, | 12 | FIX_EARLYCON_MEM_BASE, |
13 | __end_of_permanent_fixed_addresses, | ||
14 | |||
15 | FIX_KMAP_BEGIN = __end_of_permanent_fixed_addresses, | ||
12 | FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_TYPE_NR * NR_CPUS) - 1, | 16 | FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_TYPE_NR * NR_CPUS) - 1, |
13 | 17 | ||
14 | /* Support writing RO kernel text via kprobes, jump labels, etc. */ | 18 | /* Support writing RO kernel text via kprobes, jump labels, etc. */ |
@@ -18,7 +22,16 @@ enum fixed_addresses { | |||
18 | __end_of_fixed_addresses | 22 | __end_of_fixed_addresses |
19 | }; | 23 | }; |
20 | 24 | ||
25 | #define FIXMAP_PAGE_COMMON (L_PTE_YOUNG | L_PTE_PRESENT | L_PTE_XN | L_PTE_DIRTY) | ||
26 | |||
27 | #define FIXMAP_PAGE_NORMAL (FIXMAP_PAGE_COMMON | L_PTE_MT_WRITEBACK) | ||
28 | |||
29 | /* Used by set_fixmap_(io|nocache), both meant for mapping a device */ | ||
30 | #define FIXMAP_PAGE_IO (FIXMAP_PAGE_COMMON | L_PTE_MT_DEV_SHARED | L_PTE_SHARED) | ||
31 | #define FIXMAP_PAGE_NOCACHE FIXMAP_PAGE_IO | ||
32 | |||
21 | void __set_fixmap(enum fixed_addresses idx, phys_addr_t phys, pgprot_t prot); | 33 | void __set_fixmap(enum fixed_addresses idx, phys_addr_t phys, pgprot_t prot); |
34 | void __init early_fixmap_init(void); | ||
22 | 35 | ||
23 | #include <asm-generic/fixmap.h> | 36 | #include <asm-generic/fixmap.h> |
24 | 37 | ||