NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/38679



The following reply was made to PR bin/38679; it has been noted by GNATS.

From: Paul Goyette <paul%whooppee.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/38679 
Date: Mon, 19 May 2008 17:13:47 -0700 (PDT)

   This message is in MIME format.  The first part should be readable text,
   while the remaining parts are likely unreadable without MIME-aware tools.
 
 --0-1979994873-1211242427=:29258
 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
 
 The attached patch supersedes the previous one.  In addition to printing 
 the AMD L3 Cache information, this patch also correctly identifies the 
 AMD Phenom & Barcelona as 'Family 10h'.  It also uses humanize_number(3) 
 to display cache and TLB data rather than hardwiring everything to a 
 scale factor of 1k.
 --0-1979994873-1211242427=:29258
 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=i386.c.diff
 Content-Transfer-Encoding: BASE64
 Content-ID: <Pine.NEB.4.64.0805191713470.29258%quicky.whooppee.com@localhost>
 Content-Description: 
 Content-Disposition: attachment; filename=i386.c.diff
 
 SW5kZXg6IGkzODYuYw0KPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0KUkNTIGZp
 bGU6IC9jdnNyb290L3NyYy91c3Iuc2Jpbi9jcHVjdGwvYXJjaC9pMzg2LmMs
 dg0KcmV0cmlldmluZyByZXZpc2lvbiAxLjQNCmRpZmYgLXUgLXAgLXIxLjQg
 aTM4Ni5jDQotLS0gaTM4Ni5jCTE3IE1heSAyMDA4IDEzOjIwOjI3IC0wMDAw
 CTEuNA0KKysrIGkzODYuYwkyMCBNYXkgMjAwOCAwMDowMzo1OCAtMDAwMA0K
 QEAgLTgwLDYgKzgwLDkgQEAgX19SQ1NJRCgiJE5ldEJTRDogaTM4Ni5jLHYg
 MS40IDIwMDgvMDUvMQ0KIA0KICNpbmNsdWRlICIuLi9jcHVjd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