forked from KolibriOS/kolibrios
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:
parent
cca75db9fe
commit
f751b2ee25
@ -61,17 +61,19 @@ pci_api:
|
|||||||
jne pci_service_not_supported
|
jne pci_service_not_supported
|
||||||
|
|
||||||
;cross
|
;cross
|
||||||
|
push eax
|
||||||
mov eax,ebx
|
mov eax,ebx
|
||||||
mov ebx,ecx
|
mov ebx,ecx
|
||||||
mov ecx,edx
|
mov ecx,edx
|
||||||
movzx edx, al
|
pop edx
|
||||||
|
movzx edx, dl
|
||||||
;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
if defined mmio_pci_addr
|
if defined mmio_pci_addr
|
||||||
cmp al, 13
|
cmp dl, 13
|
||||||
ja pci_service_not_supported
|
ja pci_service_not_supported
|
||||||
else
|
else
|
||||||
cmp al, 10
|
cmp dl, 10
|
||||||
ja pci_service_not_supported
|
ja pci_service_not_supported
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
@ -22,6 +22,10 @@ iglobal
|
|||||||
szReservePortArea db 'ReservePortArea',0
|
szReservePortArea db 'ReservePortArea',0
|
||||||
szBoot_Log db 'Boot_Log',0
|
szBoot_Log db 'Boot_Log',0
|
||||||
|
|
||||||
|
szMutexInit db 'MutexInit',0
|
||||||
|
szMutexLock db 'MutexLock',0
|
||||||
|
szMutexUnlock db 'MutexUnlock',0
|
||||||
|
|
||||||
szPciApi db 'PciApi', 0
|
szPciApi db 'PciApi', 0
|
||||||
szPciRead32 db 'PciRead32', 0
|
szPciRead32 db 'PciRead32', 0
|
||||||
szPciRead16 db 'PciRead16', 0
|
szPciRead16 db 'PciRead16', 0
|
||||||
@ -91,6 +95,10 @@ kernel_export:
|
|||||||
dd szReservePortArea , r_f_port_area
|
dd szReservePortArea , r_f_port_area
|
||||||
dd szBoot_Log , boot_log
|
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 szPciApi , pci_api
|
||||||
dd szPciRead32 , pci_read32
|
dd szPciRead32 , pci_read32
|
||||||
dd szPciRead16 , pci_read16
|
dd szPciRead16 , pci_read16
|
||||||
|
@ -283,6 +283,12 @@ __exports:
|
|||||||
alloc_page, 'AllocPage', \ ; gcc ABI
|
alloc_page, 'AllocPage', \ ; gcc ABI
|
||||||
alloc_pages, 'AllocPages', \ ; stdcall
|
alloc_pages, 'AllocPages', \ ; stdcall
|
||||||
commit_pages, 'CommitPages', \ ; eax, ebx, ecx
|
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_kernel_object, 'CreateObject', \
|
||||||
create_ring_buffer, 'CreateRingBuffer', \ ; stdcall
|
create_ring_buffer, 'CreateRingBuffer', \ ; stdcall
|
||||||
destroy_kernel_object, 'DestroyObject', \
|
destroy_kernel_object, 'DestroyObject', \
|
||||||
|
@ -26,6 +26,10 @@ kernel_export \
|
|||||||
FpuRestore,\
|
FpuRestore,\
|
||||||
ReservePortArea,\
|
ReservePortArea,\
|
||||||
Boot_Log,\
|
Boot_Log,\
|
||||||
|
\
|
||||||
|
MutexInit,
|
||||||
|
MutexLock,
|
||||||
|
MutexUnlock,
|
||||||
\
|
\
|
||||||
PciApi,\
|
PciApi,\
|
||||||
PciRead32,\
|
PciRead32,\
|
||||||
|
Loading…
Reference in New Issue
Block a user