···3838#include <asm/page.h>3939#include <asm/mmu.h>4040#include <asm-generic/pgtable-nopmd.h>4141+#include <linux/const.h>41424243/**************************************************************************4344 * Page Table Flags···208207#define PGDIR_SIZE (1UL << PGDIR_SHIFT) /* vaddr span, not PDG sz */209208#define PGDIR_MASK (~(PGDIR_SIZE-1))210209211211-#ifdef __ASSEMBLY__212212-#define PTRS_PER_PTE (1 << BITS_FOR_PTE)213213-#define PTRS_PER_PGD (1 << BITS_FOR_PGD)214214-#else215215-#define PTRS_PER_PTE (1UL << BITS_FOR_PTE)216216-#define PTRS_PER_PGD (1UL << BITS_FOR_PGD)217217-#endif210210+#define PTRS_PER_PTE _BITUL(BITS_FOR_PTE)211211+#define PTRS_PER_PGD _BITUL(BITS_FOR_PGD)212212+218213/*219214 * Number of entries a user land program use.220215 * TASK_SIZE is the maximum vaddr that can be used by a userland program.