]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
MicroBlaze: Fix BZ17791 - Remove fixed page size macros and others
authorMatthew Fortune <matthew.fortune@imgtec.com>
Mon, 5 Jan 2015 15:12:45 +0000 (15:12 +0000)
committerDavid Holsgrove <david.holsgrove@xilinx.com>
Fri, 9 Jan 2015 07:34:46 +0000 (17:34 +1000)
Microblaze apparently has a variable page size (see thread below) and
should not hard-code any page-size related macros.
Also remove macros that are only used for BFD's trad-core support
which is not relavant for microblaze also according to the thread
starting here:

https://sourceware.org/ml/libc-ports/2013-11/msg00028.html

This patch is neither built nor tested but mirrors a MIPS patch that
fixes the same issue.

Thanks,
Matthew

     * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
     (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
     (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.

Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
ChangeLog
NEWS
sysdeps/unix/sysv/linux/microblaze/sys/user.h

index acb9e443542ed07396c9e1e8ae7b204680b57c87..fa778d28fecb8bc4873327a1ca25c873cf1ed754 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
+
+       [BZ #17791]
+       * NEWS: Mention bug fix.
+       * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
+       (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
+       (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
+
 2015-01-09  Torvald Riegel <triegel@redhat.com>
 
        * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
diff --git a/NEWS b/NEWS
index 0e3301ec929106c3920255d72312308fdd07bb55..e1698b23752b35017d9ddb2c3efcb271f5cda5c9 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -17,7 +17,7 @@ Version 2.21
   17630, 17633, 17634, 17635, 17647, 17653, 17657, 17658, 17664, 17665,
   17668, 17682, 17717, 17719, 17722, 17723, 17724, 17725, 17732, 17733,
   17744, 17745, 17746, 17747, 17748, 17775, 17777, 17780, 17781, 17782,
-  17793, 17796, 17797, 17806
+  17791, 17793, 17796, 17797, 17806
 
 * Optimized strcpy, stpcpy, strchrnul and strrchr implementations for
   AArch64.  Contributed by ARM Ltd.
index e23e05c9ed6178ac6347c573791c0592e3ac690c..a58a5c66ceb6051301001f278c07d90fe8097919 100644 (file)
@@ -66,12 +66,4 @@ struct user
   int                          u_debugreg [8];
 };
 
-# 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_STACK_END_ADDR   (u.start_stack + u.u_ssize * NBPG)
-
 #endif /* _SYS_USER_H */