956,9 → 956,9 |
[eax+13]:2,[eax+12]:2 |
|
cmp dword [esp+8], 1514 |
jg .finish ; packet is too long |
jg .nospace ; packet is too long |
cmp dword [esp+8], 60 |
jl .finish ; packet is too short |
jl .nospace ; packet is too short |
|
; check descriptor |
movzx eax, [device.cur_tx] |
1000,12 → 1000,13 |
.finish: |
DEBUGF 2," - Done!\n" |
stdcall KernelFree, [esp+4] |
xor eax, eax |
ret 8 |
|
.nospace: |
DEBUGF 1, 'ERROR: no free transmit descriptors\n' |
; todo: maybe somehow notify the kernel about the error? |
stdcall KernelFree, [esp+4] |
or eax, -1 |
ret 8 |
|
|