summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Jarzmik <robert.jarzmik@free.fr>2011-11-26 13:26:54 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-11-27 12:17:34 +0100
commit77fe6dce51cf3c691dbf5a8bb7bdf9efb0eb8204 (patch)
treebf6d5f9a27abc0d5cee79deb75c7383c4e51f5bc
parent146bea9b9b79f38047f14799c959280cea50c4bf (diff)
downloadbarebox-77fe6dce51cf3c691dbf5a8bb7bdf9efb0eb8204.tar.gz
barebox-77fe6dce51cf3c691dbf5a8bb7bdf9efb0eb8204.tar.xz
arm: trivial renaming create_sections
Rename create_section into create_sections, as the function is used to create multiple sections, and in particular it creates the 4096 sections of 1MBytes to have a 1:1 flat mapping of the 4GBytes address space. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/cpu/mmu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/cpu/mmu.c b/arch/arm/cpu/mmu.c
index 4446813d0a..8e4e81aa9c 100644
--- a/arch/arm/cpu/mmu.c
+++ b/arch/arm/cpu/mmu.c
@@ -9,7 +9,7 @@
static unsigned long *ttb;
-static void create_section(unsigned long virt, unsigned long phys, int size_m,
+static void create_sections(unsigned long virt, unsigned long phys, int size_m,
unsigned int flags)
{
int i;
@@ -226,7 +226,7 @@ static int mmu_init(void)
asm volatile ("mcr p15,0,%0,c3,c0,0" : : "r"(i) /*:*/);
/* create a flat mapping using 1MiB sections */
- create_section(0, 0, 4096, PMD_SECT_AP_WRITE | PMD_SECT_AP_READ |
+ create_sections(0, 0, 4096, PMD_SECT_AP_WRITE | PMD_SECT_AP_READ |
PMD_TYPE_SECT);
vectors_init();
@@ -237,7 +237,7 @@ static int mmu_init(void)
* below
*/
for_each_memory_bank(bank)
- create_section(bank->start, bank->start, bank->size >> 20,
+ create_sections(bank->start, bank->start, bank->size >> 20,
PMD_SECT_DEF_CACHED);
asm volatile (