diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-09-25 16:34:07 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-09-25 16:34:07 -0300 |
commit | 6567ada9dc1224f3c7a0ae4b6363a9232c51ba76 (patch) | |
tree | 7659c32f68f4a93a171add80b5e7e72acf101388 /libre/memtest86+/memtest86+-5.01-array-size.patch | |
parent | db8298758ed6f881ffdd19c561d1f813c4a218ca (diff) |
memtest86+: add new package to [libre]
Diffstat (limited to 'libre/memtest86+/memtest86+-5.01-array-size.patch')
-rw-r--r-- | libre/memtest86+/memtest86+-5.01-array-size.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libre/memtest86+/memtest86+-5.01-array-size.patch b/libre/memtest86+/memtest86+-5.01-array-size.patch new file mode 100644 index 000000000..f08e686c9 --- /dev/null +++ b/libre/memtest86+/memtest86+-5.01-array-size.patch @@ -0,0 +1,22 @@ +Index: memtest86+-5.01/controller.c +=================================================================== +--- memtest86+-5.01.orig/controller.c ++++ memtest86+-5.01/controller.c +@@ -292,7 +292,7 @@ static void setup_nhm(void) + + /* First, locate the PCI bus where the MCH is located */ + +- for(i = 0; i < sizeof(possible_nhm_bus); i++) { ++ for(i = 0; i < sizeof(possible_nhm_bus) / sizeof(possible_nhm_bus[0]); i++) { + pci_conf_read( possible_nhm_bus[i], 3, 4, 0x00, 2, &vid); + pci_conf_read( possible_nhm_bus[i], 3, 4, 0x02, 2, &did); + vid &= 0xFFFF; +@@ -327,7 +327,7 @@ static void setup_nhm32(void) + ctrl.mode = ECC_NONE; + + /* First, locate the PCI bus where the MCH is located */ +- for(i = 0; i < sizeof(possible_nhm_bus); i++) { ++ for(i = 0; i < sizeof(possible_nhm_bus) / sizeof(possible_nhm_bus[0]); i++) { + pci_conf_read( possible_nhm_bus[i], 3, 4, 0x00, 2, &vid); + pci_conf_read( possible_nhm_bus[i], 3, 4, 0x02, 2, &did); + vid &= 0xFFFF; |