Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Feb 2010 04:19:46 +0100 (CET)
From:      Alexander Best <alexbestms@wwu.de>
To:        <freebsd-hackers@FreeBSD.org>
Subject:   [patch] extending {amd64|i386} cpu info
Message-ID:  <permail-2010022703194680e26a0b00002027-a_best01@message-id.uni-muenster.de>

next in thread | raw e-mail | index | archive | help
  This is a MIME encoded multipart message.

--+permail-2010022703194680e26a0b00002027-a_best01+
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

hi there,

i always forget how to decipher model and family from the cpu id. of course
there're 3rd party tools to do that for you, but instead i decided to hack the
kernel. ;)

maybe somebody finds these changes useful.

cheers.
alex

--+permail-2010022703194680e26a0b00002027-a_best01+
Content-Type: text/plain
Content-Transfer-Encoding: Base64
Content-Disposition: attachment; filename="identcpu.c.patch.txt"

SW5kZXg6IHN5cy9hbWQ2NC9hbWQ2NC9pZGVudGNwdS5jCj09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHN5cy9hbWQ2
NC9hbWQ2NC9pZGVudGNwdS5jCShyZXZpc2lvbiAyMDQzODMpCisrKyBzeXMvYW1kNjQvYW1kNjQv
aWRlbnRjcHUuYwkod29ya2luZyBjb3B5KQpAQCAtMTg3LDcgKzE4NywxMiBAQAogCWlmIChjcHVf
dmVuZG9yX2lkID09IENQVV9WRU5ET1JfSU5URUwgfHwKIAkgICAgY3B1X3ZlbmRvcl9pZCA9PSBD
UFVfVkVORE9SX0FNRCB8fAogCSAgICBjcHVfdmVuZG9yX2lkID09IENQVV9WRU5ET1JfQ0VOVEFV
UikgewotCQlwcmludGYoIiAgU3RlcHBpbmcgPSAldSIsIGNwdV9pZCAmIDB4Zik7CisJCXByaW50
ZigiICBTdGVwcGluZyA9ICV1IgorCQkgICAgICAgIiAgTW9kZWwgPSAldSIKKwkJICAgICAgICIg
IEZhbWlseSA9ICV1IiwKKwkJICAgICAg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+--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?permail-2010022703194680e26a0b00002027-a_best01>