public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org>
To: cygwin-cvs@sourceware.org
Subject: [newlib-cygwin] Cygwin: wincap: set def_guard_pages to x86_64 value right away
Date: Fri, 13 May 2022 12:38:42 +0000 (GMT)	[thread overview]
Message-ID: <20220513123842.AD87B395A451@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=0f4eb70ee76832c7ff162b72cb8e934f450e4497

commit 0f4eb70ee76832c7ff162b72cb8e934f450e4497
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Mon Mar 7 10:35:20 2022 +0100

    Cygwin: wincap: set def_guard_pages to x86_64 value right away
    
    Drop conditional code in wincapc::init.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

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... */
 
 wincaps wincap_7 __attribute__((section (".cygwin_dll_common"), shared)) = {
-  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_common"), shared)) = {
 };
 
 wincaps wincap_8 __attribute__((section (".cygwin_dll_common"), shared)) = {
-  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_common"), shared)) = {
 };
 
 wincaps wincap_8_1 __attribute__((section (".cygwin_dll_common"), shared)) = {
-  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)) = {
 };
 
 wincaps  wincap_10_1507 __attribute__((section (".cygwin_dll_common"), shared)) = {
-  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 (".cygwin_dll_common"), shared))
 };
 
 wincaps  wincap_10_1607 __attribute__((section (".cygwin_dll_common"), shared)) = {
-  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 (".cygwin_dll_common"), shared))
 };
 
 wincaps wincap_10_1703 __attribute__((section (".cygwin_dll_common"), shared)) = {
-  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)) =
 };
 
 wincaps wincap_10_1709 __attribute__((section (".cygwin_dll_common"), shared)) = {
-  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)) =
 };
 
 wincaps wincap_10_1803 __attribute__((section (".cygwin_dll_common"), shared)) = {
-  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)) =
 };
 
 wincaps wincap_10_1809 __attribute__((section (".cygwin_dll_common"), shared)) = {
-  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)) =
 };
 
 wincaps wincap_10_1903 __attribute__((section (".cygwin_dll_common"), shared)) = {
-  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)) =
 };
 
 wincaps wincap_10_2004 __attribute__((section (".cygwin_dll_common"), shared)) = {
-  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)) =
 };
 
 wincaps wincap_11 __attribute__((section (".cygwin_dll_common"), shared)) = {
-  def_guard_pages:2,
+  def_guard_pages:3,
   mmap_storage_high:0x700000000000LL,
   {
     is_server:false,
@@ -460,10 +460,6 @@ wincapc::init ()
     }
 
   ((wincaps *)caps)->is_server = (version.wProductType != VER_NT_WORKSTATION);
-#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 = false;
       ((wincaps *)caps)->has_broken_prefetchvm = false;


                 reply	other threads:[~2022-05-13 12:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220513123842.AD87B395A451@sourceware.org \
    --to=corinna@sourceware.org \
    --cc=cygwin-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).