wok-6.x view memtest/stuff/memtest86+-5.01-array-size.patch @ rev 17434
Up: wv (1.2.9)
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Sun Dec 07 11:41:39 2014 +0100 (2014-12-07) |
parents | |
children | d44f69067aca |
line source
1 --- memtest86+-5.01/controller.c~ 2013-08-10 02:01:58.000000000 +0000
2 +++ memtest86+-5.01/controller.c 2013-12-12 20:58:12.873555378 +0000
3 @@ -292,7 +292,7 @@
5 /* First, locate the PCI bus where the MCH is located */
7 - for(i = 0; i < sizeof(possible_nhm_bus); i++) {
8 + for(i = 0; i < sizeof(possible_nhm_bus) / sizeof(possible_nhm_bus[0]); i++) {
9 pci_conf_read( possible_nhm_bus[i], 3, 4, 0x00, 2, &vid);
10 pci_conf_read( possible_nhm_bus[i], 3, 4, 0x02, 2, &did);
11 vid &= 0xFFFF;
12 @@ -327,7 +327,7 @@
13 ctrl.mode = ECC_NONE;
15 /* First, locate the PCI bus where the MCH is located */
16 - for(i = 0; i < sizeof(possible_nhm_bus); i++) {
17 + for(i = 0; i < sizeof(possible_nhm_bus) / sizeof(possible_nhm_bus[0]); i++) {
18 pci_conf_read( possible_nhm_bus[i], 3, 4, 0x00, 2, &vid);
19 pci_conf_read( possible_nhm_bus[i], 3, 4, 0x02, 2, &did);
20 vid &= 0xFFFF;