diff options
Diffstat (limited to 'bsps/powerpc/shared/start/pgtbl_setup.c')
-rw-r--r-- | bsps/powerpc/shared/start/pgtbl_setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsps/powerpc/shared/start/pgtbl_setup.c b/bsps/powerpc/shared/start/pgtbl_setup.c index f2543f5ff3..a52e73b380 100644 --- a/bsps/powerpc/shared/start/pgtbl_setup.c +++ b/bsps/powerpc/shared/start/pgtbl_setup.c @@ -16,7 +16,7 @@ * *pmemsize by the size of the page table. */ /* to align the pointer to the (next) page boundary */ -#define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK) +#define PAGE_ALIGN(addr) (((addr) + PAGE_MASK) & ~PAGE_MASK) /* |