From: Brian Inglis <Brian.Inglis@SystematicSW.ab.ca>
To: cygwin-patches@cygwin.com
Subject: [PATCH v2 1/2] cpuinfo: fix check for cpuid 0x80000007 support
Date: Wed, 17 Feb 2021 09:28:35 -0700 [thread overview]
Message-ID: <20210217162836.57947-2-Brian.Inglis@SystematicSW.ab.ca> (raw)
In-Reply-To: <20210217162836.57947-1-Brian.Inglis@SystematicSW.ab.ca>
[-- Attachment #1: Type: text/plain, Size: 91 bytes --]
---
winsup/cygwin/fhandler_proc.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-cpuinfo-fix-check-for-cpuid-0x80000007-support.patch --]
[-- Type: text/x-patch; name="0001-cpuinfo-fix-check-for-cpuid-0x80000007-support.patch", Size: 476 bytes --]
diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc
index 8e23c0609485..d4c8613eb392 100644
--- a/winsup/cygwin/fhandler_proc.cc
+++ b/winsup/cygwin/fhandler_proc.cc
@@ -1293,7 +1293,7 @@ format_proc_cpuinfo (void *, char *&destbuf)
/* features scattered in various CPUID levels. */
/* cpuid 0x80000007 edx */
- if (maxf >= 0x00000007)
+ if (maxe >= 0x80000007)
{
cpuid (&unused, &unused, &unused, &features1, 0x80000007);
next prev parent reply other threads:[~2021-02-17 16:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-17 16:28 [PATCH v2 0/2] cpuinfo: fix check; add AVX features; move SME, SEV/_ES features Brian Inglis
2021-02-17 16:28 ` Brian Inglis [this message]
2021-02-17 16:28 ` [PATCH v2 2/2] cpuinfo: " Brian Inglis
2021-02-18 8:40 ` [PATCH v2 0/2] cpuinfo: fix check; " Corinna Vinschen
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=20210217162836.57947-2-Brian.Inglis@SystematicSW.ab.ca \
--to=brian.inglis@systematicsw.ab.ca \
--cc=cygwin-patches@cygwin.com \
/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).