mmu.c (536fd93d432858eb6b7c1ad1dcfe051840ebef47) | mmu.c (836a24183273e9db1c092246bd8e306b297d9917) |
---|---|
1/* 2 * linux/arch/arm/mm/mmu.c 3 * 4 * Copyright (C) 1995-2005 Russell King 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. --- 209 unchanged lines hidden (view full) --- 218} 219early_param("ecc", early_ecc); 220#endif 221 222#else /* ifdef CONFIG_CPU_CP15 */ 223 224static int __init early_cachepolicy(char *p) 225{ | 1/* 2 * linux/arch/arm/mm/mmu.c 3 * 4 * Copyright (C) 1995-2005 Russell King 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. --- 209 unchanged lines hidden (view full) --- 218} 219early_param("ecc", early_ecc); 220#endif 221 222#else /* ifdef CONFIG_CPU_CP15 */ 223 224static int __init early_cachepolicy(char *p) 225{ |
226 pr_warn("cachepolicy kernel parameter not supported without cp15\n"); | 226 pr_warning("cachepolicy kernel parameter not supported without cp15\n"); |
227} 228early_param("cachepolicy", early_cachepolicy); 229 230static int __init noalign_setup(char *__unused) 231{ | 227} 228early_param("cachepolicy", early_cachepolicy); 229 230static int __init noalign_setup(char *__unused) 231{ |
232 pr_warn("noalign kernel parameter not supported without cp15\n"); | 232 pr_warning("noalign kernel parameter not supported without cp15\n"); |
233} 234__setup("noalign", noalign_setup); 235 236#endif /* ifdef CONFIG_CPU_CP15 / else */ 237 238#define PROT_PTE_DEVICE L_PTE_PRESENT|L_PTE_YOUNG|L_PTE_DIRTY|L_PTE_XN 239#define PROT_PTE_S2_DEVICE PROT_PTE_DEVICE 240#define PROT_SECT_DEVICE PMD_TYPE_SECT|PMD_SECT_AP_WRITE --- 1080 unchanged lines hidden (view full) --- 1321 flush_cache_all(); 1322} 1323 1324static void __init kmap_init(void) 1325{ 1326#ifdef CONFIG_HIGHMEM 1327 pkmap_page_table = early_pte_alloc(pmd_off_k(PKMAP_BASE), 1328 PKMAP_BASE, _PAGE_KERNEL_TABLE); | 233} 234__setup("noalign", noalign_setup); 235 236#endif /* ifdef CONFIG_CPU_CP15 / else */ 237 238#define PROT_PTE_DEVICE L_PTE_PRESENT|L_PTE_YOUNG|L_PTE_DIRTY|L_PTE_XN 239#define PROT_PTE_S2_DEVICE PROT_PTE_DEVICE 240#define PROT_SECT_DEVICE PMD_TYPE_SECT|PMD_SECT_AP_WRITE --- 1080 unchanged lines hidden (view full) --- 1321 flush_cache_all(); 1322} 1323 1324static void __init kmap_init(void) 1325{ 1326#ifdef CONFIG_HIGHMEM 1327 pkmap_page_table = early_pte_alloc(pmd_off_k(PKMAP_BASE), 1328 PKMAP_BASE, _PAGE_KERNEL_TABLE); |
1329 1330 fixmap_page_table = early_pte_alloc(pmd_off_k(FIXADDR_START), 1331 FIXADDR_START, _PAGE_KERNEL_TABLE); | |
1332#endif | 1329#endif |
1330 1331 early_pte_alloc(pmd_off_k(FIXADDR_START), FIXADDR_START, 1332 _PAGE_KERNEL_TABLE); |
|
1333} 1334 1335static void __init map_lowmem(void) 1336{ 1337 struct memblock_region *reg; 1338 unsigned long kernel_x_start = round_down(__pa(_stext), SECTION_SIZE); 1339 unsigned long kernel_x_end = round_up(__pa(__init_end), SECTION_SIZE); 1340 --- 195 unchanged lines hidden --- | 1333} 1334 1335static void __init map_lowmem(void) 1336{ 1337 struct memblock_region *reg; 1338 unsigned long kernel_x_start = round_down(__pa(_stext), SECTION_SIZE); 1339 unsigned long kernel_x_end = round_up(__pa(__init_end), SECTION_SIZE); 1340 --- 195 unchanged lines hidden --- |