@@ -0,0 +1,99 @@
1+diff --git a/controller.c b/controller.c
2+index f4f7371..183e9c3 100644
6+ * MemTest86+ V5 Specific code (GPL V2.0)
7+ * By Samuel DEMEULEMEESTER, sdemeule@memtest.org
8+ * http://www.canardpc.com - http://www.memtest.org
10++ * Edited by David McInnis Oct 4, 2014
14+@@ -292,7 +294,7 @@ static void setup_nhm(void)
16+ /* First, locate the PCI bus where the MCH is located */
18+- for(i = 0; i < sizeof(possible_nhm_bus); i++) {
19++ for(i = 0; i < sizeof(possible_nhm_bus) / sizeof(possible_nhm_bus[0]); i++) {
20+ pci_conf_read( possible_nhm_bus[i], 3, 4, 0x00, 2, &vid);
21+ pci_conf_read( possible_nhm_bus[i], 3, 4, 0x02, 2, &did);
23+@@ -327,7 +329,7 @@ static void setup_nhm32(void)
24+ ctrl.mode = ECC_NONE;
26+ /* First, locate the PCI bus where the MCH is located */
27+- for(i = 0; i < sizeof(possible_nhm_bus); i++) {
28++ for(i = 0; i < sizeof(possible_nhm_bus) / sizeof(possible_nhm_bus[0]); i++) {
29+ pci_conf_read( possible_nhm_bus[i], 3, 4, 0x00, 2, &vid);
30+ pci_conf_read( possible_nhm_bus[i], 3, 4, 0x02, 2, &did);
32+@@ -1424,7 +1426,7 @@ static void poll_fsb_amd64(void) {
33+ unsigned long dramchr;
36+- unsigned int dummy[3];
37++ unsigned int dummy[4];
41+@@ -2851,13 +2853,13 @@ static void poll_timings_nf4ie(void) {
43+ static void poll_timings_i875(void) {
49+ int rcd, rp, ras, chan;
52+- pci_conf_read( 0, 6, 0, 0x40, 4, &dev62);
53++ pci_conf_read( 0, 6, 0, 0x40, 4, &dev6);
54+ ptr2=(long*)(dev6+0x68);
56+ /* Read the MMR Base Address & Define the pointer */
57+diff --git a/init.c b/init.c
58+index 754b8d7..5bd8b4f 100644
63+ * Released under version 2 of the Gnu Public License.
66++ * Edited by David McInnis October 4, 2014
70+@@ -914,7 +916,6 @@ void cpu_type(void)
72+ cprint(0, COL_MID, "Unknown Intel");
78+diff --git a/main.c b/main.c
79+index 0bc7ca0..613f811 100644
82+@@ -422,7 +422,7 @@ void test_start(void)
84+ btrace(my_cpu_num, __LINE__, "BeforeInit", 1, 0, 0);
85+ /* Draw the screen and get system information */
89+ /* Set defaults and initialize variables */
91+@@ -737,7 +737,7 @@ void test_start(void)
92+ /* Do the same test for each CPU */
93+ if (++cpu_sel >= act_cpus)