diff options
Diffstat (limited to 'arch/arm/mm/mmu.c')
-rw-r--r-- | arch/arm/mm/mmu.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 941dfb9e9a78..9f0610243bd6 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c | |||
@@ -488,7 +488,7 @@ static void __init build_mem_type_table(void) | |||
488 | #endif | 488 | #endif |
489 | 489 | ||
490 | for (i = 0; i < 16; i++) { | 490 | for (i = 0; i < 16; i++) { |
491 | unsigned long v = pgprot_val(protection_map[i]); | 491 | pteval_t v = pgprot_val(protection_map[i]); |
492 | protection_map[i] = __pgprot(v | user_pgprot); | 492 | protection_map[i] = __pgprot(v | user_pgprot); |
493 | } | 493 | } |
494 | 494 | ||
@@ -876,6 +876,22 @@ static void __init pci_reserve_io(void) | |||
876 | #define pci_reserve_io() do { } while (0) | 876 | #define pci_reserve_io() do { } while (0) |
877 | #endif | 877 | #endif |
878 | 878 | ||
879 | #ifdef CONFIG_DEBUG_LL | ||
880 | void __init debug_ll_io_init(void) | ||
881 | { | ||
882 | struct map_desc map; | ||
883 | |||
884 | debug_ll_addr(&map.pfn, &map.virtual); | ||
885 | if (!map.pfn || !map.virtual) | ||
886 | return; | ||
887 | map.pfn = __phys_to_pfn(map.pfn); | ||
888 | map.virtual &= PAGE_MASK; | ||
889 | map.length = PAGE_SIZE; | ||
890 | map.type = MT_DEVICE; | ||
891 | create_mapping(&map); | ||
892 | } | ||
893 | #endif | ||
894 | |||
879 | static void * __initdata vmalloc_min = | 895 | static void * __initdata vmalloc_min = |
880 | (void *)(VMALLOC_END - (240 << 20) - VMALLOC_OFFSET); | 896 | (void *)(VMALLOC_END - (240 << 20) - VMALLOC_OFFSET); |
881 | 897 | ||