/kernel/branches/net/drivers/i8255x.asm |
---|
595,9 → 595,9 |
[eax+13]:2,[eax+12]:2 |
cmp dword [esp+8], 1500 |
jg .finish ; packet is too long |
jg .error ; packet is too long |
cmp dword [esp+8], 60 |
jl .finish ; packet is too short |
jl .error ; packet is too short |
set_io 0 |
in ax, dx |
643,10 → 643,14 |
in ax, dx |
.finish: |
xor eax, eax |
ret 8 |
.error: |
stdcall KernelFree, [esp+4] |
or eax, -1 |
ret 8 |
;;;;;;;;;;;;;;;;;;;;;;; |
;; ;; |
;; Interrupt handler ;; |