diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2018-08-24 06:25:41 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2018-08-24 06:25:41 +0000 |
commit | 1c45986a99d166723fab8a17247686a092428bcf (patch) | |
tree | 93bd4556973fc67bbabbb714fa1e1bf7c6eb318f /sys/arch/amd64 | |
parent | b6fca095998757811b1a203bc3e7e07fa3f7d66d (diff) |
print cpu family/model/stepping in dmesg
discussed with deraadt@ bluhm@ and sthen@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/identcpu.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/identcpu.c b/sys/arch/amd64/amd64/identcpu.c index 184379b8a51..d21871bf464 100644 --- a/sys/arch/amd64/amd64/identcpu.c +++ b/sys/arch/amd64/amd64/identcpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: identcpu.c,v 1.107 2018/08/21 19:04:38 deraadt Exp $ */ +/* $OpenBSD: identcpu.c,v 1.108 2018/08/24 06:25:40 jsg Exp $ */ /* $NetBSD: identcpu.c,v 1.1 2003/04/26 18:39:28 fvdl Exp $ */ /* @@ -563,6 +563,9 @@ identifycpu(struct cpu_info *ci) cpu_cpuspeed = cpu_amd64speed; } + printf(", %02x-%02x-%02x", ci->ci_family, ci->ci_model, + ci->ci_signature & 0x0f); + printf("\n%s: ", ci->ci_dev->dv_xname); for (i = 0; i < nitems(cpu_cpuid_features); i++) |