aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/mmu.c
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2008-12-01 06:53:07 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-12-01 06:53:07 -0500
commit37efe6427dd50e889473fb3c7fcec02dbbd098eb (patch)
treed5a6b3e6fbd5d60a1a145f5801002e96bcb9af9e /arch/arm/mm/mmu.c
parent112243034cec7c3ef0499fdebf39218714da453d (diff)
[ARM] use asm/sections.h
Update to use the asm/sections.h header rather than declaring these symbols ourselves. Change __data_start to _data to conform with the naming found within asm/sections.h. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/mmu.c')
-rw-r--r--arch/arm/mm/mmu.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
index c0b9a78d7b87..2ab5f962a053 100644
--- a/arch/arm/mm/mmu.c
+++ b/arch/arm/mm/mmu.c
@@ -17,6 +17,7 @@
17 17
18#include <asm/cputype.h> 18#include <asm/cputype.h>
19#include <asm/mach-types.h> 19#include <asm/mach-types.h>
20#include <asm/sections.h>
20#include <asm/setup.h> 21#include <asm/setup.h>
21#include <asm/sizes.h> 22#include <asm/sizes.h>
22#include <asm/tlb.h> 23#include <asm/tlb.h>
@@ -730,7 +731,7 @@ static inline void prepare_page_table(void)
730 731
731#ifdef CONFIG_XIP_KERNEL 732#ifdef CONFIG_XIP_KERNEL
732 /* The XIP kernel is mapped in the module area -- skip over it */ 733 /* The XIP kernel is mapped in the module area -- skip over it */
733 addr = ((unsigned long)&_etext + PGDIR_SIZE - 1) & PGDIR_MASK; 734 addr = ((unsigned long)_etext + PGDIR_SIZE - 1) & PGDIR_MASK;
734#endif 735#endif
735 for ( ; addr < PAGE_OFFSET; addr += PGDIR_SIZE) 736 for ( ; addr < PAGE_OFFSET; addr += PGDIR_SIZE)
736 pmd_clear(pmd_off_k(addr)); 737 pmd_clear(pmd_off_k(addr));
@@ -756,10 +757,10 @@ void __init reserve_node_zero(pg_data_t *pgdat)
756 * Note that this can only be in node 0. 757 * Note that this can only be in node 0.
757 */ 758 */
758#ifdef CONFIG_XIP_KERNEL 759#ifdef CONFIG_XIP_KERNEL
759 reserve_bootmem_node(pgdat, __pa(&__data_start), &_end - &__data_start, 760 reserve_bootmem_node(pgdat, __pa(_data), _end - _data,
760 BOOTMEM_DEFAULT); 761 BOOTMEM_DEFAULT);
761#else 762#else
762 reserve_bootmem_node(pgdat, __pa(&_stext), &_end - &_stext, 763 reserve_bootmem_node(pgdat, __pa(_stext), _end - _stext,
763 BOOTMEM_DEFAULT); 764 BOOTMEM_DEFAULT);
764#endif 765#endif
765 766
@@ -838,7 +839,7 @@ static void __init devicemaps_init(struct machine_desc *mdesc)
838#ifdef CONFIG_XIP_KERNEL 839#ifdef CONFIG_XIP_KERNEL
839 map.pfn = __phys_to_pfn(CONFIG_XIP_PHYS_ADDR & SECTION_MASK); 840 map.pfn = __phys_to_pfn(CONFIG_XIP_PHYS_ADDR & SECTION_MASK);
840 map.virtual = MODULES_VADDR; 841 map.virtual = MODULES_VADDR;
841 map.length = ((unsigned long)&_etext - map.virtual + ~SECTION_MASK) & SECTION_MASK; 842 map.length = ((unsigned long)_etext - map.virtual + ~SECTION_MASK) & SECTION_MASK;
842 map.type = MT_ROM; 843 map.type = MT_ROM;
843 create_mapping(&map); 844 create_mapping(&map);
844#endif 845#endif