Merge branch 'master' into disk

This commit is contained in:
Adrien Bourmault 2020-02-13 15:55:00 +01:00
commit 5dff67c3aa
No known key found for this signature in database
GPG Key ID: AFEE5788AEE3F4EC
1 changed files with 2 additions and 1 deletions

View File

@ -160,7 +160,8 @@ void IoInitPCI()
IoPciEnumerate();
// Give R/W access to the configuration space
for(int i=0; i < 65536; i++) // 65536 = 256 * 32 * 8
int maxI = (256 * 32 * 8 * 4096) / KPAGESIZE;
for(int i=0; i < maxI; i++)
{
MmMapPage((void *)((ulong)pciConfigBaseAddress + i * KPAGESIZE),
(void *)((ulong)pciConfigBaseAddress + i * KPAGESIZE),