sysfn62: again and again...

git-svn-id: svn://kolibrios.org@1614 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge) 2010-09-12 16:42:09 +00:00
parent cedc365c6a
commit 5c26de5030
3 changed files with 13 additions and 11 deletions

View File

@ -57,23 +57,25 @@ endg
align 4
pci_api:
cmp [pci_access_enabled],1
jne pci_service_not_supported
;cross
push eax
mov eax,ebx
mov eax,ebx
mov ebx,ecx
mov ecx,edx
pop edx
movzx edx, dl
;;;;;;;;;;;;;;;;;;;
align 4
pci_api_drv:
cmp [pci_access_enabled],1
jne pci_service_not_supported
movzx edx, al
if defined mmio_pci_addr
cmp dl, 13
cmp al, 13
ja pci_service_not_supported
else
cmp dl, 10
cmp al, 10
ja pci_service_not_supported
end if

View File

@ -99,7 +99,7 @@ kernel_export:
dd szMutexLock , mutex_lock ;gcc fastcall
dd szMutexUnlock , mutex_unlock ;gcc fastcall
dd szPciApi , pci_api
dd szPciApi , pci_api_drv
dd szPciRead32 , pci_read32
dd szPciRead16 , pci_read16
dd szPciRead8 , pci_read8

View File

@ -306,7 +306,7 @@ __exports:
\
get_display, 'GetDisplay', \
set_screen, 'SetScreen', \
pci_api, 'PciApi', \
pci_api_drv, 'PciApi', \
pci_read8, 'PciRead8', \ ; stdcall
pci_read16, 'PciRead16', \ ; stdcall
pci_read32, 'PciRead32', \ ; stdcall