diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2022-03-07 12:30:32 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2022-05-12 22:00:25 +0200 |
commit | 8e606d6599c5fd8e25a08c72f672e664523ff1ff (patch) | |
tree | 4a92c8b9173e7841798079c3248bda1d53be0503 | |
parent | 88951851169b4c457c2688d9eed5db77ae9e1a78 (diff) | |
download | newlib-8e606d6599c5fd8e25a08c72f672e664523ff1ff.zip newlib-8e606d6599c5fd8e25a08c72f672e664523ff1ff.tar.gz newlib-8e606d6599c5fd8e25a08c72f672e664523ff1ff.tar.bz2 |
Cygwin: wincap: drop has_broken_prefetchvm flag and related code
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r-- | winsup/cygwin/mmap.cc | 10 | ||||
-rw-r--r-- | winsup/cygwin/wincap.cc | 13 | ||||
-rw-r--r-- | winsup/cygwin/wincap.h | 2 |
3 files changed, 1 insertions, 24 deletions
diff --git a/winsup/cygwin/mmap.cc b/winsup/cygwin/mmap.cc index 7982fd1..b38ffc3 100644 --- a/winsup/cygwin/mmap.cc +++ b/winsup/cygwin/mmap.cc @@ -1487,15 +1487,7 @@ posix_madvise (void *addr, size_t len, int advice) WIN32_MEMORY_RANGE_ENTRY me = { base, size }; if (!PrefetchVirtualMemory (GetCurrentProcess (), 1, &me, 0) && GetLastError () != ERROR_PROC_NOT_FOUND) - { - /* FIXME 2015-08-27: On W10 build 10240 under WOW64, - PrefetchVirtualMemory always returns ERROR_INVALID_PARAMETER - for some reason. If we're running on W10 WOW64, ignore this - error. This has been fixed in W10 1511. */ - if (!wincap.has_broken_prefetchvm () - || GetLastError () != ERROR_INVALID_PARAMETER) - ret = EINVAL; - } + ret = EINVAL; } break; case POSIX_MADV_DONTNEED: diff --git a/winsup/cygwin/wincap.cc b/winsup/cygwin/wincap.cc index a1c0a45..e67778c 100644 --- a/winsup/cygwin/wincap.cc +++ b/winsup/cygwin/wincap.cc @@ -27,7 +27,6 @@ wincaps wincap_7 __attribute__((section (".cygwin_dll_common"), shared)) = { has_gaa_largeaddress_bug:true, has_precise_system_time:false, has_microsoft_accounts:false, - has_broken_prefetchvm:false, has_new_pebteb_region:false, has_broken_whoami:true, has_unprivileged_createsymlink:false, @@ -58,7 +57,6 @@ wincaps wincap_8 __attribute__((section (".cygwin_dll_common"), shared)) = { has_gaa_largeaddress_bug:false, has_precise_system_time:true, has_microsoft_accounts:true, - has_broken_prefetchvm:false, has_new_pebteb_region:false, has_broken_whoami:false, has_unprivileged_createsymlink:false, @@ -89,7 +87,6 @@ wincaps wincap_8_1 __attribute__((section (".cygwin_dll_common"), shared)) = { has_gaa_largeaddress_bug:false, has_precise_system_time:true, has_microsoft_accounts:true, - has_broken_prefetchvm:false, has_new_pebteb_region:false, has_broken_whoami:false, has_unprivileged_createsymlink:false, @@ -120,7 +117,6 @@ wincaps wincap_10_1507 __attribute__((section (".cygwin_dll_common"), shared)) has_gaa_largeaddress_bug:false, has_precise_system_time:true, has_microsoft_accounts:true, - has_broken_prefetchvm:true, has_new_pebteb_region:false, has_broken_whoami:false, has_unprivileged_createsymlink:false, @@ -151,7 +147,6 @@ wincaps wincap_10_1607 __attribute__((section (".cygwin_dll_common"), shared)) has_gaa_largeaddress_bug:false, has_precise_system_time:true, has_microsoft_accounts:true, - has_broken_prefetchvm:true, has_new_pebteb_region:false, has_broken_whoami:false, has_unprivileged_createsymlink:false, @@ -182,7 +177,6 @@ wincaps wincap_10_1703 __attribute__((section (".cygwin_dll_common"), shared)) = has_gaa_largeaddress_bug:false, has_precise_system_time:true, has_microsoft_accounts:true, - has_broken_prefetchvm:false, has_new_pebteb_region:true, has_broken_whoami:false, has_unprivileged_createsymlink:true, @@ -213,7 +207,6 @@ wincaps wincap_10_1709 __attribute__((section (".cygwin_dll_common"), shared)) = has_gaa_largeaddress_bug:false, has_precise_system_time:true, has_microsoft_accounts:true, - has_broken_prefetchvm:false, has_new_pebteb_region:true, has_broken_whoami:false, has_unprivileged_createsymlink:true, @@ -244,7 +237,6 @@ wincaps wincap_10_1803 __attribute__((section (".cygwin_dll_common"), shared)) = has_gaa_largeaddress_bug:false, has_precise_system_time:true, has_microsoft_accounts:true, - has_broken_prefetchvm:false, has_new_pebteb_region:true, has_broken_whoami:false, has_unprivileged_createsymlink:true, @@ -275,7 +267,6 @@ wincaps wincap_10_1809 __attribute__((section (".cygwin_dll_common"), shared)) = has_gaa_largeaddress_bug:false, has_precise_system_time:true, has_microsoft_accounts:true, - has_broken_prefetchvm:false, has_new_pebteb_region:true, has_broken_whoami:false, has_unprivileged_createsymlink:true, @@ -306,7 +297,6 @@ wincaps wincap_10_1903 __attribute__((section (".cygwin_dll_common"), shared)) = has_gaa_largeaddress_bug:false, has_precise_system_time:true, has_microsoft_accounts:true, - has_broken_prefetchvm:false, has_new_pebteb_region:true, has_broken_whoami:false, has_unprivileged_createsymlink:true, @@ -337,7 +327,6 @@ wincaps wincap_10_2004 __attribute__((section (".cygwin_dll_common"), shared)) = has_gaa_largeaddress_bug:false, has_precise_system_time:true, has_microsoft_accounts:true, - has_broken_prefetchvm:false, has_new_pebteb_region:true, has_broken_whoami:false, has_unprivileged_createsymlink:true, @@ -368,7 +357,6 @@ wincaps wincap_11 __attribute__((section (".cygwin_dll_common"), shared)) = { has_gaa_largeaddress_bug:false, has_precise_system_time:true, has_microsoft_accounts:true, - has_broken_prefetchvm:false, has_new_pebteb_region:true, has_broken_whoami:false, has_unprivileged_createsymlink:true, @@ -450,7 +438,6 @@ wincapc::init () ((wincaps *)caps)->is_server = (version.wProductType != VER_NT_WORKSTATION); { ((wincaps *)caps)->has_gaa_largeaddress_bug = false; - ((wincaps *)caps)->has_broken_prefetchvm = false; } __small_sprintf (osnam, "NT-%d.%d", version.dwMajorVersion, diff --git a/winsup/cygwin/wincap.h b/winsup/cygwin/wincap.h index 3114771..6b5723a 100644 --- a/winsup/cygwin/wincap.h +++ b/winsup/cygwin/wincap.h @@ -21,7 +21,6 @@ struct wincaps unsigned has_gaa_largeaddress_bug : 1; unsigned has_precise_system_time : 1; unsigned has_microsoft_accounts : 1; - unsigned has_broken_prefetchvm : 1; unsigned has_new_pebteb_region : 1; unsigned has_broken_whoami : 1; unsigned has_unprivileged_createsymlink : 1; @@ -82,7 +81,6 @@ public: bool IMPLEMENT (has_gaa_largeaddress_bug) bool IMPLEMENT (has_precise_system_time) bool IMPLEMENT (has_microsoft_accounts) - bool IMPLEMENT (has_broken_prefetchvm) bool IMPLEMENT (has_new_pebteb_region) bool IMPLEMENT (has_broken_whoami) bool IMPLEMENT (has_unprivileged_createsymlink) |