diff options
| author | Ryan Steinmetz <zi@FreeBSD.org> | 2011-10-15 02:53:31 +0000 |
|---|---|---|
| committer | Ryan Steinmetz <zi@FreeBSD.org> | 2011-10-15 02:53:31 +0000 |
| commit | 6e9151ca055629e8cb7a9bb13be28967ebcf2c61 (patch) | |
| tree | 63c7b2a3e84449a8af4085b00a4c91e88ef541ac /sysutils/mcelog/files/patch-intel.c | |
| parent | New port: security/sssd (diff) | |
New port: sysutils/mcelog
mcelog processes machine checks (in particular memory and CPU
hardware errors) on modern x86-based unix systems and
produces human-readable output.
FreeBSD conversion patches were originally written by John
Baldwin <jhb@freebsd.org> and later incorporated into this
port.
WWW: http://mcelog.org/
PR: ports/161395
Submitted by: Jeremy Chadwick <freebsd@jdc.parodius.com>
Diffstat (limited to 'sysutils/mcelog/files/patch-intel.c')
| -rw-r--r-- | sysutils/mcelog/files/patch-intel.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sysutils/mcelog/files/patch-intel.c b/sysutils/mcelog/files/patch-intel.c new file mode 100644 index 000000000000..50ba80932891 --- /dev/null +++ b/sysutils/mcelog/files/patch-intel.c @@ -0,0 +1,21 @@ +--- ./intel.c.orig 2009-12-15 07:18:40.000000000 -0500 ++++ ./intel.c 2011-10-14 22:36:47.000000000 -0400 +@@ -38,7 +38,7 @@ + return CPU_CORE2; + else if (model == 0x1d) + return CPU_DUNNINGTON; +- else if (model == 0x1a) ++ else if (model == 0x1a || model == 0x2c) /* Nehalem/Westmere */ + return CPU_NEHALEM; + + if (model >= 0x1a) +@@ -79,7 +79,9 @@ + corr_err_cnt = EXTRACT(m->status, 38, 52); + memory_error(m, channel, dimm, corr_err_cnt, recordlen); + ++#ifdef __Linux__ + account_page_error(m, channel, dimm, corr_err_cnt); ++#endif + + return 1; + } |
