summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2013-01-15 14:48:45 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-01-18 08:28:24 +0100
commitd32b75f0033f9802712bbf112d4220e8536229df (patch)
tree8440bfa950e09b676c0c4646135477d2e03cd9e5 /arch
parent47326f80a9a18ae2dee436e21bfc6770d935be55 (diff)
downloadbarebox-d32b75f0033f9802712bbf112d4220e8536229df.tar.gz
barebox-d32b75f0033f9802712bbf112d4220e8536229df.tar.xz
arm-mmu: move PAGE_ALIGN macro to common.h
PAGE_ALIGN macro is needed to align addresses to page boundaries. Move this macro to another PAGE_* defines. Commands which uses remap_range function needs this macro. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/mmu.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm/cpu/mmu.c b/arch/arm/cpu/mmu.c
index 6e2eccaf28..6e24356221 100644
--- a/arch/arm/cpu/mmu.c
+++ b/arch/arm/cpu/mmu.c
@@ -308,8 +308,6 @@ void mmu_disable(void)
__mmu_cache_off();
}
-#define PAGE_ALIGN(s) (((s) + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1))
-
void *dma_alloc_coherent(size_t size)
{
void *ret;