allocation bug for prefetched BARs fixed

git-svn-id: svn://kolibrios.org@1462 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Artem Jerdev (art_zh) 2010-05-12 14:03:38 +00:00
parent 2bc8f0feb7
commit 5dd58a4db9

View File

@ -464,7 +464,8 @@ pci_mmio_map:
@@:
pop ecx ; ecx = block size, bytes (expanded to whole page)
mov ebx, ecx ; user_alloc destroys eax, ecx, edx, but saves ebx
push eax ; store MMIO physical address + keep 2DWords in the stack
and eax, 0xFFFFFFF0
push eax ; store MMIO physical address + keep 2DWords in the stack
stdcall user_alloc, ecx
or eax, eax
jnz mmio_map_over