diff options
author | Joel Sherrill <joel@rtems.org> | 2018-03-28 11:17:45 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2018-03-28 11:17:45 -0500 |
commit | 0b8a6d77a894fcfd5ba92b64ae1d66faff57c0c7 (patch) | |
tree | 5846fe63910f384228b72d48346a33100e0d841c /c/src/lib/libbsp/powerpc/shared/bootloader/misc.c | |
parent | bsps/riscv: Fix warnings (diff) | |
download | rtems-0b8a6d77a894fcfd5ba92b64ae1d66faff57c0c7.tar.bz2 |
Eliminate PowerPC libcpu/page.h
Started to eliminate warnings and then realized that only one one-line
macro in the file was used by a few files. The rest of the file was
was not needed. Eliminate the file.
Closes #3354.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/powerpc/shared/bootloader/misc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/powerpc/shared/bootloader/misc.c b/c/src/lib/libbsp/powerpc/shared/bootloader/misc.c index 111e02bd9e..508467209b 100644 --- a/c/src/lib/libbsp/powerpc/shared/bootloader/misc.c +++ b/c/src/lib/libbsp/powerpc/shared/bootloader/misc.c @@ -19,11 +19,13 @@ #include "bootldr.h" #include <libcpu/spr.h> #include "zlib.h" -#include <libcpu/page.h> #include <libcpu/byteorder.h> #include <rtems/bspIo.h> #include <bsp.h> +/* to align the pointer to the (next) page boundary */ +#define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK) + SPR_RO(PPC_PVR) struct inode; |