Date: Sat, 11 May 2013 00:18:31 +0200 From: Oliver Pinter <oliver.pntr@gmail.com> To: Konstantin Belousov <kib@freebsd.org> Cc: rpaulo <rpaulo@freebsd.org>, current <current@freebsd.org> Subject: Re: fix r249601 Message-ID: <CAPjTQNHJ9C8t4CreEySvWYh5WCVw0pkg5zBH94F%2BhKD%2BEMzYZQ@mail.gmail.com> In-Reply-To: <CAPjTQNH_wgpnOB4FLDB_XjH9PgvA1ipkyKD3-NTJ4byqs32qxw@mail.gmail.com> References: <CAPjTQNH_wgpnOB4FLDB_XjH9PgvA1ipkyKD3-NTJ4byqs32qxw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
updated version
On 5/10/13, Oliver Pinter <oliver.pntr@gmail.com> wrote:
> Hello!
>
> See the attached patch. This fixed the stdext features enumeration.
>
[-- Attachment #2 --]
commit 9ed0b290e9015ca33345aa7735defa67d2ee4eca
Author: Oliver Pinter <oliver.pntr@gmail.com>
Date: Fri May 10 03:42:55 2013 +0200
fix stdext enumeration in identcpu
the octal prefix must be octal number + 1
see Intel 319433-014
RDSEED: bit 18 -> in printf must be 19 -> \023
ADX: bit 19 -> 20 -> \024
SMAP: bit 20 -> 21 -> \025
Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
diff --git a/sys/amd64/amd64/identcpu.c b/sys/amd64/amd64/identcpu.c
index ec5a2aa..e63affc 100644
--- a/sys/amd64/amd64/identcpu.c
+++ b/sys/amd64/amd64/identcpu.c
@@ -407,11 +407,11 @@ printcpuinfo(void)
/* Restricted Transactional Memory */
"\014RTM"
/* Enhanced NRBG */
- "\022RDSEED"
+ "\023RDSEED"
/* ADCX + ADOX */
- "\023ADX"
+ "\024ADX"
/* Supervisor Mode Access Prevention */
- "\024SMAP"
+ "\025SMAP"
);
}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPjTQNHJ9C8t4CreEySvWYh5WCVw0pkg5zBH94F%2BhKD%2BEMzYZQ>
