diff options
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index 56347df2c4..e559b94a71 100644 --- a/include/common.h +++ b/include/common.h @@ -216,6 +216,8 @@ int run_shell(void); #define PAGE_SIZE 4096 #define PAGE_SHIFT 12 +#define PAGE_ALIGN(s) (((s) + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1)) +#define PAGE_ALIGN_DOWN(x) ((x) & ~(PAGE_SIZE - 1)) int memory_display(char *addr, loff_t offs, ulong nbytes, int size, int swab); |