wok-current
annotate memtest/stuff/memtest86+-5.01-array-size.patch @ rev 23495
updated python-humanize (0.5.1 -> 1.0.0)
author |
Hans-G?nter Theisgen |
date |
Mon Apr 06 07:04:00 2020 +0100 (2020-04-06) |
parents |
|
children |
d44f69067aca |
rev |
line source |
pascal@17225
|
1 --- memtest86+-5.01/controller.c~ 2013-08-10 02:01:58.000000000 +0000
|
pascal@17225
|
2 +++ memtest86+-5.01/controller.c 2013-12-12 20:58:12.873555378 +0000
|
pascal@17225
|
3 @@ -292,7 +292,7 @@
|
pascal@17225
|
4
|
pascal@17225
|
5 /* First, locate the PCI bus where the MCH is located */
|
pascal@17225
|
6
|
pascal@17225
|
7 - for(i = 0; i < sizeof(possible_nhm_bus); i++) {
|
pascal@17225
|
8 + for(i = 0; i < sizeof(possible_nhm_bus) / sizeof(possible_nhm_bus[0]); i++) {
|
pascal@17225
|
9 pci_conf_read( possible_nhm_bus[i], 3, 4, 0x00, 2, &vid);
|
pascal@17225
|
10 pci_conf_read( possible_nhm_bus[i], 3, 4, 0x02, 2, &did);
|
pascal@17225
|
11 vid &= 0xFFFF;
|
pascal@17225
|
12 @@ -327,7 +327,7 @@
|
pascal@17225
|
13 ctrl.mode = ECC_NONE;
|
pascal@17225
|
14
|
pascal@17225
|
15 /* First, locate the PCI bus where the MCH is located */
|
pascal@17225
|
16 - for(i = 0; i < sizeof(possible_nhm_bus); i++) {
|
pascal@17225
|
17 + for(i = 0; i < sizeof(possible_nhm_bus) / sizeof(possible_nhm_bus[0]); i++) {
|
pascal@17225
|
18 pci_conf_read( possible_nhm_bus[i], 3, 4, 0x00, 2, &vid);
|
pascal@17225
|
19 pci_conf_read( possible_nhm_bus[i], 3, 4, 0x02, 2, &did);
|
pascal@17225
|
20 vid &= 0xFFFF;
|