From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id AD87B395A451; Fri, 13 May 2022 12:38:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AD87B395A451 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: wincap: set def_guard_pages to x86_64 value right away X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: 2610b681a4c9f3ed568ddf0aeee8d3f48595b9ea X-Git-Newrev: 0f4eb70ee76832c7ff162b72cb8e934f450e4497 Message-Id: <20220513123842.AD87B395A451@sourceware.org> Date: Fri, 13 May 2022 12:38:42 +0000 (GMT) X-BeenThere: cygwin-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2022 12:38:42 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D0f4eb70ee76= 832c7ff162b72cb8e934f450e4497 commit 0f4eb70ee76832c7ff162b72cb8e934f450e4497 Author: Corinna Vinschen Date: Mon Mar 7 10:35:20 2022 +0100 Cygwin: wincap: set def_guard_pages to x86_64 value right away =20 Drop conditional code in wincapc::init. =20 Signed-off-by: Corinna Vinschen Diff: --- winsup/cygwin/wincap.cc | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/winsup/cygwin/wincap.cc b/winsup/cygwin/wincap.cc index c153627ab..5c385fba4 100644 --- a/winsup/cygwin/wincap.cc +++ b/winsup/cygwin/wincap.cc @@ -19,7 +19,7 @@ details. */ puzzled that this has never been noticed before... */ =20 wincaps wincap_7 __attribute__((section (".cygwin_dll_common"), shared)) = =3D { - def_guard_pages:1, + def_guard_pages:2, mmap_storage_high:0x070000000000LL, { is_server:false, @@ -51,7 +51,7 @@ wincaps wincap_7 __attribute__((section (".cygwin_dll_com= mon"), shared)) =3D { }; =20 wincaps wincap_8 __attribute__((section (".cygwin_dll_common"), shared)) = =3D { - def_guard_pages:2, + def_guard_pages:3, mmap_storage_high:0x070000000000LL, { is_server:false, @@ -83,7 +83,7 @@ wincaps wincap_8 __attribute__((section (".cygwin_dll_com= mon"), shared)) =3D { }; =20 wincaps wincap_8_1 __attribute__((section (".cygwin_dll_common"), shared))= =3D { - def_guard_pages:2, + def_guard_pages:3, mmap_storage_high:0x700000000000LL, { is_server:false, @@ -115,7 +115,7 @@ wincaps wincap_8_1 __attribute__((section (".cygwin_dll= _common"), shared)) =3D { }; =20 wincaps wincap_10_1507 __attribute__((section (".cygwin_dll_common"), sha= red)) =3D { - def_guard_pages:2, + def_guard_pages:3, mmap_storage_high:0x700000000000LL, { is_server:false, @@ -147,7 +147,7 @@ wincaps wincap_10_1507 __attribute__((section (".cygwi= n_dll_common"), shared)) }; =20 wincaps wincap_10_1607 __attribute__((section (".cygwin_dll_common"), sha= red)) =3D { - def_guard_pages:2, + def_guard_pages:3, mmap_storage_high:0x700000000000LL, { is_server:false, @@ -179,7 +179,7 @@ wincaps wincap_10_1607 __attribute__((section (".cygwi= n_dll_common"), shared)) }; =20 wincaps wincap_10_1703 __attribute__((section (".cygwin_dll_common"), shar= ed)) =3D { - def_guard_pages:2, + def_guard_pages:3, mmap_storage_high:0x700000000000LL, { is_server:false, @@ -211,7 +211,7 @@ wincaps wincap_10_1703 __attribute__((section (".cygwin= _dll_common"), shared)) =3D }; =20 wincaps wincap_10_1709 __attribute__((section (".cygwin_dll_common"), shar= ed)) =3D { - def_guard_pages:2, + def_guard_pages:3, mmap_storage_high:0x700000000000LL, { is_server:false, @@ -243,7 +243,7 @@ wincaps wincap_10_1709 __attribute__((section (".cygwin= _dll_common"), shared)) =3D }; =20 wincaps wincap_10_1803 __attribute__((section (".cygwin_dll_common"), shar= ed)) =3D { - def_guard_pages:2, + def_guard_pages:3, mmap_storage_high:0x700000000000LL, { is_server:false, @@ -275,7 +275,7 @@ wincaps wincap_10_1803 __attribute__((section (".cygwin= _dll_common"), shared)) =3D }; =20 wincaps wincap_10_1809 __attribute__((section (".cygwin_dll_common"), shar= ed)) =3D { - def_guard_pages:2, + def_guard_pages:3, mmap_storage_high:0x700000000000LL, { is_server:false, @@ -307,7 +307,7 @@ wincaps wincap_10_1809 __attribute__((section (".cygwin= _dll_common"), shared)) =3D }; =20 wincaps wincap_10_1903 __attribute__((section (".cygwin_dll_common"), shar= ed)) =3D { - def_guard_pages:2, + def_guard_pages:3, mmap_storage_high:0x700000000000LL, { is_server:false, @@ -339,7 +339,7 @@ wincaps wincap_10_1903 __attribute__((section (".cygwin= _dll_common"), shared)) =3D }; =20 wincaps wincap_10_2004 __attribute__((section (".cygwin_dll_common"), shar= ed)) =3D { - def_guard_pages:2, + def_guard_pages:3, mmap_storage_high:0x700000000000LL, { is_server:false, @@ -371,7 +371,7 @@ wincaps wincap_10_2004 __attribute__((section (".cygwin= _dll_common"), shared)) =3D }; =20 wincaps wincap_11 __attribute__((section (".cygwin_dll_common"), shared)) = =3D { - def_guard_pages:2, + def_guard_pages:3, mmap_storage_high:0x700000000000LL, { is_server:false, @@ -460,10 +460,6 @@ wincapc::init () } =20 ((wincaps *)caps)->is_server =3D (version.wProductType !=3D VER_NT_WORKS= TATION); -#ifdef __x86_64__ - /* 64 bit systems have one more guard page than their 32 bit counterpart= . */ - ++((wincaps *)caps)->def_guard_pages; -#endif { ((wincaps *)caps)->has_gaa_largeaddress_bug =3D false; ((wincaps *)caps)->has_broken_prefetchvm =3D false;