diff options
author | Alexander Aring <alex.aring@gmail.com> | 2013-01-15 14:48:45 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-18 08:28:24 +0100 |
commit | d32b75f0033f9802712bbf112d4220e8536229df (patch) | |
tree | 8440bfa950e09b676c0c4646135477d2e03cd9e5 /include/common.h | |
parent | 47326f80a9a18ae2dee436e21bfc6770d935be55 (diff) | |
download | barebox-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 'include/common.h')
-rw-r--r-- | include/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index b1c96de88b..95333441f4 100644 --- a/include/common.h +++ b/include/common.h @@ -225,6 +225,7 @@ int run_shell(void); #define PAGE_SIZE 4096 #define PAGE_SHIFT 12 +#define PAGE_ALIGN(s) (((s) + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1)) int memory_display(char *addr, loff_t offs, ulong nbytes, int size, int swab); |