[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r6928 - in glibc-package/trunk/debian: . patches patches/hppa



Author: aurel32
Date: 2016-01-07 17:03:39 +0000 (Thu, 07 Jan 2016)
New Revision: 6928

Added:
   glibc-package/trunk/debian/patches/hppa/cvs-update-mman.h.diff
Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/series
Log:
patches/hppa/cvs-update-mman.h.diff: new patch from upstream to add huge
pages support on hppa.  Closes: #809776.

Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog	2016-01-07 16:50:23 UTC (rev 6927)
+++ glibc-package/trunk/debian/changelog	2016-01-07 17:03:39 UTC (rev 6928)
@@ -8,6 +8,8 @@
     #809636.
   * Update Brazilian Portuguese debconf translation, by Adriano Rafael
     Gomes.  Closes: #809741.
+  * patches/hppa/cvs-update-mman.h.diff: new patch from upstream to add huge
+    pages support on hppa.  Closes: #809776.
 
   [ Samuel Thibault ]
   * patches/hurd-i386/cvs-libpthread-sigstate.diff: New patch to fix spurious

Added: glibc-package/trunk/debian/patches/hppa/cvs-update-mman.h.diff
===================================================================
--- glibc-package/trunk/debian/patches/hppa/cvs-update-mman.h.diff	                        (rev 0)
+++ glibc-package/trunk/debian/patches/hppa/cvs-update-mman.h.diff	2016-01-07 17:03:39 UTC (rev 6928)
@@ -0,0 +1,51 @@
+2016-01-02  Helge Deller  <deller@gmx.de>
+
+	[BZ #19285]
+	* sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
+	(MAP_HUGETLB, MCL_ONFAULT): Likewise.
+	(MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
+	(MADV_xxK_PAGES): Remove.
+
+--- a/sysdeps/unix/sysv/linux/hppa/bits/mman.h
++++ b/sysdeps/unix/sysv/linux/hppa/bits/mman.h
+@@ -58,6 +58,8 @@
+ # define MAP_GROWSDOWN	0x8000		/* Stack-like segment */
+ # define MAP_POPULATE	0x10000		/* Populate (prefault) pagetables */
+ # define MAP_NONBLOCK	0x20000		/* Do not block on IO */
++# define MAP_STACK	0x40000		/* Create for process/thread stacks */
++# define MAP_HUGETLB	0x80000		/* Create a huge page mapping */
+ #endif
+ 
+ /* Flags to "msync"  */
+@@ -68,6 +70,7 @@
+ /* Flags to "mlockall"  */
+ #define MCL_CURRENT	1		/* Lock all current mappings */
+ #define MCL_FUTURE	2		/* Lock all future mappings */
++#define MCL_ONFAULT	4		/* Lock all pages that are faulted in */
+ 
+ /* Flags for `mremap'.  */
+ #ifdef __USE_GNU
+@@ -90,18 +93,13 @@
+ # define MADV_DOFORK	 11	/* Do inherit across fork.  */
+ # define MADV_MERGEABLE   65	/* KSM may merge identical pages */
+ # define MADV_UNMERGEABLE 66	/* KSM may not merge identical pages */
++# define MADV_HUGEPAGE	 67	/* Worth backing with hugepages */
++# define MADV_NOHUGEPAGE 68	/* Not worth backing with hugepages */
++# define MADV_DONTDUMP	 69	/* Explicity exclude from the core dump,
++				   overrides the coredump filter bits */
++# define MADV_DODUMP	 70	/* Clear the MADV_NODUMP flag */
+ #endif
+ 
+-/* The range 12-64 is reserved for page size specification. */
+-#define MADV_4K_PAGES   12              /* Use 4K pages  */
+-#define MADV_16K_PAGES  14              /* Use 16K pages */
+-#define MADV_64K_PAGES  16              /* Use 64K pages */
+-#define MADV_256K_PAGES 18              /* Use 256K pages */
+-#define MADV_1M_PAGES   20              /* Use 1 Megabyte pages */
+-#define MADV_4M_PAGES   22              /* Use 4 Megabyte pages */
+-#define MADV_16M_PAGES  24              /* Use 16 Megabyte pages */
+-#define MADV_64M_PAGES  26              /* Use 64 Megabyte pages */
+-
+ /* The POSIX people had to invent similar names for the same things.  */
+ #ifdef __USE_XOPEN2K
+ # define POSIX_MADV_NORMAL	0 /* No further special treatment.  */

Modified: glibc-package/trunk/debian/patches/series
===================================================================
--- glibc-package/trunk/debian/patches/series	2016-01-07 16:50:23 UTC (rev 6927)
+++ glibc-package/trunk/debian/patches/series	2016-01-07 17:03:39 UTC (rev 6928)
@@ -76,6 +76,7 @@
 hppa/cvs-sysdep-errno.diff
 hppa/cvs-inline-syscall-rewrite.diff
 hppa/cvs-inline-syscall.diff
+hppa/cvs-update-mman.h.diff
 
 hurd-i386/local-enable-ldconfig.diff
 hurd-i386/tg-context_functions.diff


Reply to: