From dead98b12d21015f9ab5efc133b542ea3aa69291 Mon Sep 17 00:00:00 2001 From: Oliver Pinter 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 --- 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