forked from Imagelibrary/rtems
bsps/powerpc: Fix PAGE_ALIGN() macros
Previous warning fixes which include <sys/param.h> broke this macro. The definition of PAGE_MASK changed.
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
#include <bsp.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)
|
||||
|
||||
SPR_RO(PPC_PVR)
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user