forked from KolibriOS/kolibrios
i8254x driver: Corrected return flags for transmit procedure.
git-svn-id: svn://kolibrios.org@4521 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
730070df44
commit
6471aac71c
@ -754,15 +754,15 @@ proc transmit stdcall bufferptr, buffersize
|
|||||||
add dword[device.bytes_tx], eax
|
add dword[device.bytes_tx], eax
|
||||||
adc dword[device.bytes_tx + 4], 0
|
adc dword[device.bytes_tx + 4], 0
|
||||||
|
|
||||||
xor eax, eax
|
|
||||||
popf
|
popf
|
||||||
|
xor eax, eax
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.fail:
|
.fail:
|
||||||
DEBUGF 2,"Send failed\n"
|
DEBUGF 2,"Send failed\n"
|
||||||
stdcall KernelFree, [bufferptr]
|
stdcall KernelFree, [bufferptr]
|
||||||
or eax, -1
|
|
||||||
popf
|
popf
|
||||||
|
or eax, -1
|
||||||
ret
|
ret
|
||||||
|
|
||||||
endp
|
endp
|
||||||
|
Loading…
Reference in New Issue
Block a user