summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/shared/startup/pgtbl_setup.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2018-03-28 11:17:45 -0500
committerJoel Sherrill <joel@rtems.org>2018-03-28 11:17:45 -0500
commit0b8a6d77a894fcfd5ba92b64ae1d66faff57c0c7 (patch)
tree5846fe63910f384228b72d48346a33100e0d841c /c/src/lib/libbsp/powerpc/shared/startup/pgtbl_setup.c
parentbsps/riscv: Fix warnings (diff)
downloadrtems-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 'c/src/lib/libbsp/powerpc/shared/startup/pgtbl_setup.c')
-rw-r--r--c/src/lib/libbsp/powerpc/shared/startup/pgtbl_setup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/powerpc/shared/startup/pgtbl_setup.c b/c/src/lib/libbsp/powerpc/shared/startup/pgtbl_setup.c
index 66bb8efb29..8a8407bd49 100644
--- a/c/src/lib/libbsp/powerpc/shared/startup/pgtbl_setup.c
+++ b/c/src/lib/libbsp/powerpc/shared/startup/pgtbl_setup.c
@@ -1,6 +1,5 @@
#include <rtems.h>
#include <libcpu/mmu.h>
-#include <libcpu/page.h>
#include <rtems/bspIo.h>
#include <libcpu/pte121.h>
@@ -15,6 +14,9 @@
* Also, the 'setup' routine must reduce
* *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)
+
/*
* Authorship