aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorMatthew Fortune <matthew.fortune@imgtec.com>2015-01-05 13:34:41 +0000
committerMatthew Fortune <matthew.fortune@imgtec.com>2015-01-05 13:45:16 +0000
commitb1efe3bbcfd94941556ffd5b60539207023c8224 (patch)
tree2bdd13d785fdb92b6ad5b88991eb9af5f8b564f3 /sysdeps
parentb93c2205ec57af3c0491cdb608b53a9b4d7ff57e (diff)
downloadglibc-b1efe3bbcfd94941556ffd5b60539207023c8224.zip
glibc-b1efe3bbcfd94941556ffd5b60539207023c8224.tar.gz
glibc-b1efe3bbcfd94941556ffd5b60539207023c8224.tar.bz2
Fix MIPS variable PAGE_SIZE bug (16191)
MIPS supports a variable page size but glibc defines a constant. This causes at least two glibc tests to fail when the page size does not match the hard-coded size: inet/test-ifaddrs inet/test_ifindex [BZ #16191] * NEWS: Mention bug fix. * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove. (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise. (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise. (HOST_STACK_END_ADDR): Likewise.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/mips/sys/user.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/sysdeps/unix/sysv/linux/mips/sys/user.h b/sysdeps/unix/sysv/linux/mips/sys/user.h
index a249dd4..286fd57 100644
--- a/sysdeps/unix/sysv/linux/mips/sys/user.h
+++ b/sysdeps/unix/sysv/linux/mips/sys/user.h
@@ -206,13 +206,4 @@ struct user {
#endif
-#define PAGE_SHIFT 12
-#define PAGE_SIZE (1UL << PAGE_SHIFT)
-#define PAGE_MASK (~(PAGE_SIZE-1))
-#define NBPG PAGE_SIZE
-#define UPAGES 1
-#define HOST_TEXT_START_ADDR (u.start_code)
-#define HOST_DATA_START_ADDR (u.start_data)
-#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
-
#endif /* _SYS_USER_H */