forked from KolibriOS/kolibrios
some little changes
git-svn-id: svn://kolibrios.org@1375 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
df16d45d01
commit
3f03a80e3e
@ -87,7 +87,7 @@ end if
|
|||||||
|
|
||||||
no_pci_access_for_applications:
|
no_pci_access_for_applications:
|
||||||
|
|
||||||
mov eax,-1
|
or eax,-1
|
||||||
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -513,18 +513,14 @@ pci_mmio_unmap:
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
|
;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
|
||||||
|
uglobal
|
||||||
|
align 4
|
||||||
; VendID (2), DevID (2), Revision = 0 (1), Class Code (3), FNum (1), Bus (1)
|
; VendID (2), DevID (2), Revision = 0 (1), Class Code (3), FNum (1), Bus (1)
|
||||||
pci_emu_dat: times 30*10 db 0
|
pci_emu_dat: times 30*10 db 0
|
||||||
|
endg
|
||||||
;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
|
;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
|
||||||
align 4
|
align 4
|
||||||
sys_pcibios:
|
sys_pcibios:
|
||||||
xchg ebx, eax
|
|
||||||
xchg ecx, eax
|
|
||||||
xchg edx, eax
|
|
||||||
xchg esi, eax
|
|
||||||
xchg edi, eax
|
|
||||||
cmp [pci_access_enabled], 1
|
cmp [pci_access_enabled], 1
|
||||||
jne .unsupported_func
|
jne .unsupported_func
|
||||||
cmp [pci_bios_entry], 0
|
cmp [pci_bios_entry], 0
|
||||||
@ -616,14 +612,14 @@ sys_pcibios:
|
|||||||
.not_WRITE_CONFIG:
|
.not_WRITE_CONFIG:
|
||||||
.unsupported_func:
|
.unsupported_func:
|
||||||
mov ah, 0x81 ; FUNC_NOT_SUPPORTED
|
mov ah, 0x81 ; FUNC_NOT_SUPPORTED
|
||||||
.return:mov dword[esp + 8 ], edi
|
.return:mov dword[esp + 4 ], edi
|
||||||
mov dword[esp + 12], esi
|
mov dword[esp + 8], esi
|
||||||
.return_abcd:
|
.return_abcd:
|
||||||
mov dword[esp + 28], edx
|
mov dword[esp + 24], edx
|
||||||
.return_abc:
|
.return_abc:
|
||||||
mov dword[esp + 32], ecx
|
mov dword[esp + 28], ecx
|
||||||
.return_ab:
|
.return_ab:
|
||||||
mov dword[esp + 24], ebx
|
mov dword[esp + 20], ebx
|
||||||
.return_a:
|
.return_a:
|
||||||
mov dword[esp + 36], eax
|
mov dword[esp + 32], eax
|
||||||
ret
|
ret
|
||||||
|
@ -159,7 +159,7 @@ iglobal
|
|||||||
dd 0
|
dd 0
|
||||||
dd sound_interface ; 55-Sound interface
|
dd sound_interface ; 55-Sound interface
|
||||||
dd 0
|
dd 0
|
||||||
dd sys_pcibios ; 57-PCI BIOS32
|
dd 0
|
||||||
dd file_system ; 58-Common file system interface
|
dd file_system ; 58-Common file system interface
|
||||||
dd 0
|
dd 0
|
||||||
dd sys_IPC ; 60-Inter Process Communication
|
dd sys_IPC ; 60-Inter Process Communication
|
||||||
@ -237,7 +237,7 @@ iglobal
|
|||||||
dd undefined_syscall ; 54-reserved
|
dd undefined_syscall ; 54-reserved
|
||||||
dd cross_order ; 55-Sound interface
|
dd cross_order ; 55-Sound interface
|
||||||
dd undefined_syscall ; 56-reserved
|
dd undefined_syscall ; 56-reserved
|
||||||
dd cross_order ; 57-PCI BIOS32
|
dd sys_pcibios ; 57-PCI BIOS32
|
||||||
dd cross_order ; 58-Common file system interface
|
dd cross_order ; 58-Common file system interface
|
||||||
dd undefined_syscall ; 59-reserved
|
dd undefined_syscall ; 59-reserved
|
||||||
dd cross_order ; 60-Inter Process Communication
|
dd cross_order ; 60-Inter Process Communication
|
||||||
|
Loading…
Reference in New Issue
Block a user