[coreboot-gerrit] Patch set updated for coreboot: 161026a inteltool: Print raw CPUID and make hexadecimal values unambiguous

Stefan Tauner (stefan.tauner@gmx.at) gerrit at coreboot.org
Tue Jul 23 11:55:47 CEST 2013


Stefan Tauner (stefan.tauner at gmx.at) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3788

-gerrit

commit 161026a57928dc312689794dca7fe130b4d9015f
Author: Damien Zammit <damien at zamaudio.com>
Date:   Wed Jul 17 23:59:40 2013 +1000

    inteltool: Print raw CPUID and make hexadecimal values unambiguous
    
    The raw CPUID is useful for matching the directories under 'src/cpu/intel'
    and is not easy to find out otherwise because it is most often decoded
    already. The decoded values are not obviously hexadecimal so prepend
    them with 0x to make sure they are unambiguous.
    
    The output differences look like this:
    -	CPU: Processor Type: 0, Family 6, Model 25, Stepping 2
    +	CPU: ID 0x20652, Processor Type 0x0, Family 0x6, Model 0x25, Stepping 0x2
    
    Change-Id: Id47f0b00f8db931f0000451c8f63ac1e966442c4
    Signed-off-by: Damien Zammit <damien at zamaudio.com>
    Signed-off-by: Paul Menzel <paulepanter at users.sourceforge.net>
---
 util/inteltool/inteltool.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/util/inteltool/inteltool.c b/util/inteltool/inteltool.c
index 5cd964a..219d84e 100644
--- a/util/inteltool/inteltool.c
+++ b/util/inteltool/inteltool.c
@@ -374,8 +374,8 @@ int main(int argc, char *argv[])
 	 * left-shifted "Extended Model" fields.
 	 * http://download.intel.com/design/processor/applnots/24161832.pdf
 	 */
-	printf("CPU: Processor Type: %x, Family %x, Model %x, Stepping %x\n",
-			(id >> 12) & 0x3, ((id >> 8) & 0xf) + ((id >> 20) & 0xff),
+	printf("CPU: ID 0x%x, Processor Type 0x%x, Family 0x%x, Model 0x%x, Stepping 0x%x\n",
+			id, (id >> 12) & 0x3, ((id >> 8) & 0xf) + ((id >> 20) & 0xff),
 			((id >> 12) & 0xf0) + ((id >> 4) & 0xf), (id & 0xf));
 
 	/* Determine names */



More information about the coreboot-gerrit mailing list