mirror of
https://gitlab.os-k.eu/os-k-team/os-k.git
synced 2023-08-25 14:03:10 +02:00
Bug correction : map before enumerate
This commit is contained in:
parent
3bbfa136eb
commit
783dc0e697
@ -157,8 +157,6 @@ void IoInitPCI()
|
|||||||
pciConfigBaseAddress = MCFG_table->pciConfigBaseAddress;
|
pciConfigBaseAddress = MCFG_table->pciConfigBaseAddress;
|
||||||
DebugLog("PCI Config Base address = 0x%p\n", pciConfigBaseAddress);
|
DebugLog("PCI Config Base address = 0x%p\n", pciConfigBaseAddress);
|
||||||
|
|
||||||
IoPciEnumerate();
|
|
||||||
|
|
||||||
// Give R/W access to the configuration space
|
// Give R/W access to the configuration space
|
||||||
int maxI = (256 * 32 * 8 * 4096) / KPAGESIZE;
|
int maxI = (256 * 32 * 8 * 4096) / KPAGESIZE;
|
||||||
for(int i=0; i < maxI; i++)
|
for(int i=0; i < maxI; i++)
|
||||||
@ -167,4 +165,6 @@ void IoInitPCI()
|
|||||||
(void *)((ulong)pciConfigBaseAddress + i * KPAGESIZE),
|
(void *)((ulong)pciConfigBaseAddress + i * KPAGESIZE),
|
||||||
PRESENT | READWRITE);
|
PRESENT | READWRITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IoPciEnumerate();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user