public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] linux: Add MMAP_ABOVE4G from Linux 6.6 to sys/mman.h
@ 2023-11-03 13:02 Adhemerval Zanella
  0 siblings, 0 replies; only message in thread
From: Adhemerval Zanella @ 2023-11-03 13:02 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=cb8c78b2ffa0b77ae453b2d328d7e2fe5186ef2a

commit cb8c78b2ffa0b77ae453b2d328d7e2fe5186ef2a
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Oct 31 13:32:35 2023 -0300

    linux: Add MMAP_ABOVE4G from Linux 6.6 to sys/mman.h
    
    x86 added the flag (29f890d1050fc099f) for CET enabled.
    
    Also update tst-mman-consts.py test.

Diff:
---
 sysdeps/unix/sysv/linux/tst-mman-consts.py | 2 +-
 sysdeps/unix/sysv/linux/x86/bits/mman.h    | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/sysdeps/unix/sysv/linux/tst-mman-consts.py b/sysdeps/unix/sysv/linux/tst-mman-consts.py
index e85ea41ee4..8186d7e178 100644
--- a/sysdeps/unix/sysv/linux/tst-mman-consts.py
+++ b/sysdeps/unix/sysv/linux/tst-mman-consts.py
@@ -33,7 +33,7 @@ def main():
                         help='C compiler (including options) to use')
     args = parser.parse_args()
     linux_version_headers = glibcsyscalls.linux_kernel_version(args.cc)
-    linux_version_glibc = (6, 5)
+    linux_version_glibc = (6, 6)
     sys.exit(glibcextract.compare_macro_consts(
         '#define _GNU_SOURCE 1\n'
         '#include <sys/mman.h>\n',
diff --git a/sysdeps/unix/sysv/linux/x86/bits/mman.h b/sysdeps/unix/sysv/linux/x86/bits/mman.h
index b335ceff43..3d356e86a0 100644
--- a/sysdeps/unix/sysv/linux/x86/bits/mman.h
+++ b/sysdeps/unix/sysv/linux/x86/bits/mman.h
@@ -25,6 +25,7 @@
 
 /* Other flags.  */
 #define MAP_32BIT	0x40		/* Only give out 32-bit addresses.  */
+#define MAP_ABOVE4G	0x80		/* Only map above 4GB.  */
 
 #include <bits/mman-map-flags-generic.h>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-03 13:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-03 13:02 [glibc] linux: Add MMAP_ABOVE4G from Linux 6.6 to sys/mman.h Adhemerval Zanella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).