From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id C14A8385773A; Fri, 3 Nov 2023 13:02:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C14A8385773A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1699016551; bh=7qS0rZF8zeZxh914il88mzudumnQU/fTAEeaFrllvZc=; h=From:To:Subject:Date:From; b=h5kZeqGT7Lf3evIjB4NdipZUoyuHvikylsQydtky3KM9GXN0PB28XyqKEz9DCAecq xdSKWgtnaxCohYgoZ958rsf4M5gMoN1rTTGst0BEOOCs+W2a2nQgCbvNBB2PZeb9CT lW9fb7IyATKTSJ2hHDEdpUsS/CS6Q+nnK34eyTAM= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc] linux: Add MMAP_ABOVE4G from Linux 6.6 to sys/mman.h X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/master X-Git-Oldrev: f680063f302df3c1bb7cbaec8250f0b2247c91bc X-Git-Newrev: cb8c78b2ffa0b77ae453b2d328d7e2fe5186ef2a Message-Id: <20231103130231.C14A8385773A@sourceware.org> Date: Fri, 3 Nov 2023 13:02:31 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=cb8c78b2ffa0b77ae453b2d328d7e2fe5186ef2a commit cb8c78b2ffa0b77ae453b2d328d7e2fe5186ef2a Author: Adhemerval Zanella 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 \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