forked from KolibriOS/kolibrios
Replaced signed relative jumps with unsigned ones were needed.
(I must lose this bad habbit in 2013...) git-svn-id: svn://kolibrios.org@3155 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; ;;
|
||||
;; Copyright (C) KolibriOS team 2004-2013. All rights reserved. ;;
|
||||
;; Copyright (C) KolibriOS team 2010-2013. All rights reserved. ;;
|
||||
;; Distributed under terms of the GNU General Public License ;;
|
||||
;; ;;
|
||||
;; rhine.asm ;;
|
||||
@@ -584,7 +584,7 @@ proc service_proc stdcall, ioctl:dword
|
||||
jne @F
|
||||
|
||||
cmp [IOCTL.out_size], 4
|
||||
jl .fail
|
||||
jb .fail
|
||||
mov eax, [IOCTL.output]
|
||||
mov [eax], dword API_VERSION
|
||||
|
||||
@@ -597,7 +597,7 @@ proc service_proc stdcall, ioctl:dword
|
||||
jne .fail
|
||||
|
||||
cmp [IOCTL.inp_size], 3 ; Data input must be at least 3 bytes
|
||||
jl .fail
|
||||
jb .fail
|
||||
|
||||
mov eax, [IOCTL.input]
|
||||
cmp byte [eax], 1 ; 1 means device number and bus number (pci) are given
|
||||
@@ -623,7 +623,7 @@ proc service_proc stdcall, ioctl:dword
|
||||
; This device doesnt have its own eth_device structure yet, lets create one
|
||||
.firstdevice:
|
||||
cmp [devices], MAX_DEVICES ; First check if the driver can handle one more card
|
||||
jge .fail
|
||||
jae .fail
|
||||
|
||||
allocate_and_clear ebx, device.size, .fail ; Allocate the buffer for device structure
|
||||
|
||||
|
Reference in New Issue
Block a user