This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/19285] New: [hppa] sysdeps/unix/sysv/linux/hppa/bits/mman.h: missing MAP_HUGETLB and MAP_STACK defines


https://sourceware.org/bugzilla/show_bug.cgi?id=19285

            Bug ID: 19285
           Summary: [hppa] sysdeps/unix/sysv/linux/hppa/bits/mman.h:
                    missing MAP_HUGETLB and MAP_STACK defines
           Product: glibc
           Version: unspecified
               URL: http://git.kernel.org/cgit/linux/kernel/git/torvalds/l
                    inux.git/commit/?id=736d2169338a50c8814efc186b5423aee4
                    3b0c68
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: deller at gmx dot de
                CC: carlos at redhat dot com, dave.anglin at bell dot net,
                    drepper.fsp at gmail dot com
  Target Milestone: ---
              Host: hppa-unknown-linux-gnu
            Target: hppa-unknown-linux-gnu
             Build: hppa-unknown-linux-gnu

Hugepage support was just added to upstream Linux kernel.
In order for userspace to be able to use huge pages, the define for MAP_HUGETLB
is currently missing from glibc header files.
The attached patch adds the missing define.

Additionally:
- MAP_STACK is missing too and should be added.
- the MADV_XX_PAGES flags were never used in the Linux kernel (they were added
by me many years ago based on a proposed patch from someone for Linux kernel
which was never applied). Let's get rid of them too, as they were dropped from
upstream kernel sources as well.

The attached patch fixes all mentioned issues and brings
sysdeps/unix/sysv/linux/hppa/bits/mman.h up in sync with Linux kernel.

Relevant upstream kernel commits are:
1.
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=736d2169338a50c8814efc186b5423aee43b0c68
2.
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=dcbf0d299c00ed4f82ea8d6e359ad88a5182f9b8

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]