diff options
Diffstat (limited to 'bsps/powerpc/motorola_powerpc/bootloader/mm.c')
-rw-r--r-- | bsps/powerpc/motorola_powerpc/bootloader/mm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsps/powerpc/motorola_powerpc/bootloader/mm.c b/bsps/powerpc/motorola_powerpc/bootloader/mm.c index 13479cb106..1b3df41d49 100644 --- a/bsps/powerpc/motorola_powerpc/bootloader/mm.c +++ b/bsps/powerpc/motorola_powerpc/bootloader/mm.c @@ -45,7 +45,7 @@ #include <limits.h> /* 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) extern void (tlb_handlers)(void); extern void (_handler_glue)(void); |