Small bugfix concerning ISA devices

git-svn-id: svn://kolibrios.org@4974 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2014-06-14 10:34:31 +00:00
parent 6496d04506
commit 0651536c07

View File

@ -268,13 +268,12 @@ proc service_proc stdcall, ioctl:dword
jmp .hook jmp .hook
.isa: .isa:
mov esi, device_list mov esi, device_list
mov ecx, [devices] mov ecx, [devices]
test ecx, ecx test ecx, ecx
jz .firstdevice_isa jz .firstdevice_isa
mov al, [eax+3]
movzx edi, word [eax+1] movzx edi, word [eax+1]
mov al, [eax+3]
.nextdevice_isa: .nextdevice_isa:
mov ebx, [esi] mov ebx, [esi]
cmp edi, [device.io_addr] cmp edi, [device.io_addr]
@ -291,7 +290,7 @@ proc service_proc stdcall, ioctl:dword
call create_new_struct call create_new_struct
mov eax, [edx + IOCTL.input] mov eax, [edx + IOCTL.input]
movzx ecx, word [eax+1] movzx ecx, word[eax+1]
mov [device.io_addr], ecx mov [device.io_addr], ecx
mov cl, [eax+3] mov cl, [eax+3]
mov [device.irq_line], cl mov [device.irq_line], cl