1)sysfn62 yet anothe fix

2)new exports

git-svn-id: svn://kolibrios.org@1612 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge) 2010-09-11 22:21:05 +00:00
parent cca75db9fe
commit f751b2ee25
4 changed files with 23 additions and 3 deletions

View File

@ -61,17 +61,19 @@ pci_api:
jne pci_service_not_supported
;cross
push eax
mov eax,ebx
mov ebx,ecx
mov ecx,edx
movzx edx, al
pop edx
movzx edx, dl
;;;;;;;;;;;;;;;;;;;
if defined mmio_pci_addr
cmp al, 13
cmp dl, 13
ja pci_service_not_supported
else
cmp al, 10
cmp dl, 10
ja pci_service_not_supported
end if

View File

@ -22,6 +22,10 @@ iglobal
szReservePortArea db 'ReservePortArea',0
szBoot_Log db 'Boot_Log',0
szMutexInit db 'MutexInit',0
szMutexLock db 'MutexLock',0
szMutexUnlock db 'MutexUnlock',0
szPciApi db 'PciApi', 0
szPciRead32 db 'PciRead32', 0
szPciRead16 db 'PciRead16', 0
@ -91,6 +95,10 @@ kernel_export:
dd szReservePortArea , r_f_port_area
dd szBoot_Log , boot_log
dd szMutexInit , mutex_init ;gcc fastcall
dd szMutexLock , mutex_lock ;gcc fastcall
dd szMutexUnlock , mutex_unlock ;gcc fastcall
dd szPciApi , pci_api
dd szPciRead32 , pci_read32
dd szPciRead16 , pci_read16

View File

@ -283,6 +283,12 @@ __exports:
alloc_page, 'AllocPage', \ ; gcc ABI
alloc_pages, 'AllocPages', \ ; stdcall
commit_pages, 'CommitPages', \ ; eax, ebx, ecx
\
create_event, 'CreateEvent', \ ; ecx, esi
raise_event, 'RaiseEvent', \ ; eax, ebx, edx, esi
wait_event, 'WaitEvent', \ ; eax, ebx
get_event_ex, 'GetEvent', \ ; edi
\
create_kernel_object, 'CreateObject', \
create_ring_buffer, 'CreateRingBuffer', \ ; stdcall
destroy_kernel_object, 'DestroyObject', \

View File

@ -26,6 +26,10 @@ kernel_export \
FpuRestore,\
ReservePortArea,\
Boot_Log,\
\
MutexInit,
MutexLock,
MutexUnlock,
\
PciApi,\
PciRead32,\