Remove <asm/page.h>.

If we have PAGE_SIZE/PAGESIZE, POSIX says they should be in <limits.h>.

Change-Id: I3c2d574ea2aea81f524874a156361411a4ffa18e
This commit is contained in:
Elliott Hughes
2014-02-24 15:55:31 -08:00
parent b26e4944e2
commit 0e44bc3bae
8 changed files with 32 additions and 48 deletions

View File

@@ -105,9 +105,15 @@
#define ULONG_LONG_MAX ULLONG_MAX
#endif
/* New code should use sysconf(_SC_PAGE_SIZE) instead. */
#ifndef PAGE_SIZE
#define PAGE_SIZE 4096
#endif
#ifndef PAGESIZE
#include <asm/page.h>
#define PAGESIZE PAGE_SIZE
#endif
/* glibc's PAGE_MASK is the bitwise negation of BSD's! TODO: remove? */
#define PAGE_MASK (~(PAGE_SIZE - 1))
#endif /* !_LIMITS_H_ */