Date: Fri, 10 May 2013 03:49:33 +0200 From: Oliver Pinter <oliver.pntr@gmail.com> To: Konstantin Belousov <kib@freebsd.org> Cc: rpaulo <rpaulo@FreeBSD.org>, current <current@freebsd.org> Subject: fix r249601 Message-ID: <CAPjTQNH_wgpnOB4FLDB_XjH9PgvA1ipkyKD3-NTJ4byqs32qxw@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Hello! See the attached patch. This fixed the stdext features enumeration. [-- Attachment #2 --] From dead98b12d21015f9ab5efc133b542ea3aa69291 Mon Sep 17 00:00:00 2001 From: Oliver Pinter <oliver.pntr@gmail.com> Date: Fri, 10 May 2013 03:42:55 +0200 Subject: [PATCH] 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> --- sys/amd64/amd64/identcpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/amd64/amd64/identcpu.c b/sys/amd64/amd64/identcpu.c index ec5a2aa..765fa4e 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" + "\02RDSEED" /* ADCX + ADOX */ - "\023ADX" + "\024ADX" /* Supervisor Mode Access Prevention */ - "\024SMAP" + "\025SMAP" ); } -- 1.8.2
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPjTQNH_wgpnOB4FLDB_XjH9PgvA1ipkyKD3-NTJ4byqs32qxw>
