mmu.c (69dbdd819599e2f3b77c172e83af512845bca5ad) | mmu.c (247055aa21ffef1c49dd64710d5e94c2aee19b58) |
---|---|
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. --- 10 unchanged lines hidden (view full) --- 19#include <asm/cputype.h> 20#include <asm/sections.h> 21#include <asm/cachetype.h> 22#include <asm/setup.h> 23#include <asm/sizes.h> 24#include <asm/smp_plat.h> 25#include <asm/tlb.h> 26#include <asm/highmem.h> | 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. --- 10 unchanged lines hidden (view full) --- 19#include <asm/cputype.h> 20#include <asm/sections.h> 21#include <asm/cachetype.h> 22#include <asm/setup.h> 23#include <asm/sizes.h> 24#include <asm/smp_plat.h> 25#include <asm/tlb.h> 26#include <asm/highmem.h> |
27#include <asm/traps.h> |
|
27 28#include <asm/mach/arch.h> 29#include <asm/mach/map.h> 30 31#include "mm.h" 32 33DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); 34 --- 874 unchanged lines hidden (view full) --- 909 * This means you have to be careful how you debug this function, or any 910 * called function. This means you can't use any function or debugging 911 * method which may touch any device, otherwise the kernel _will_ crash. 912 */ 913static void __init devicemaps_init(struct machine_desc *mdesc) 914{ 915 struct map_desc map; 916 unsigned long addr; | 28 29#include <asm/mach/arch.h> 30#include <asm/mach/map.h> 31 32#include "mm.h" 33 34DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); 35 --- 874 unchanged lines hidden (view full) --- 910 * This means you have to be careful how you debug this function, or any 911 * called function. This means you can't use any function or debugging 912 * method which may touch any device, otherwise the kernel _will_ crash. 913 */ 914static void __init devicemaps_init(struct machine_desc *mdesc) 915{ 916 struct map_desc map; 917 unsigned long addr; |
917 void *vectors; | |
918 919 /* 920 * Allocate the vector page early. 921 */ | 918 919 /* 920 * Allocate the vector page early. 921 */ |
922 vectors = early_alloc(PAGE_SIZE); | 922 vectors_page = early_alloc(PAGE_SIZE); |
923 924 for (addr = VMALLOC_END; addr; addr += PGDIR_SIZE) 925 pmd_clear(pmd_off_k(addr)); 926 927 /* 928 * Map the kernel if it is XIP. 929 * It is always first in the modulearea. 930 */ --- 23 unchanged lines hidden (view full) --- 954 create_mapping(&map); 955#endif 956 957 /* 958 * Create a mapping for the machine vectors at the high-vectors 959 * location (0xffff0000). If we aren't using high-vectors, also 960 * create a mapping at the low-vectors virtual address. 961 */ | 923 924 for (addr = VMALLOC_END; addr; addr += PGDIR_SIZE) 925 pmd_clear(pmd_off_k(addr)); 926 927 /* 928 * Map the kernel if it is XIP. 929 * It is always first in the modulearea. 930 */ --- 23 unchanged lines hidden (view full) --- 954 create_mapping(&map); 955#endif 956 957 /* 958 * Create a mapping for the machine vectors at the high-vectors 959 * location (0xffff0000). If we aren't using high-vectors, also 960 * create a mapping at the low-vectors virtual address. 961 */ |
962 map.pfn = __phys_to_pfn(virt_to_phys(vectors)); | 962 map.pfn = __phys_to_pfn(virt_to_phys(vectors_page)); |
963 map.virtual = 0xffff0000; 964 map.length = PAGE_SIZE; 965 map.type = MT_HIGH_VECTORS; 966 create_mapping(&map); 967 968 if (!vectors_high()) { 969 map.virtual = 0; 970 map.type = MT_LOW_VECTORS; --- 111 unchanged lines hidden --- | 963 map.virtual = 0xffff0000; 964 map.length = PAGE_SIZE; 965 map.type = MT_HIGH_VECTORS; 966 create_mapping(&map); 967 968 if (!vectors_high()) { 969 map.virtual = 0; 970 map.type = MT_LOW_VECTORS; --- 111 unchanged lines hidden --- |