Subversion Repositories Kolibri OS

Rev

Rev 2925 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2925 Rev 2934
Line 352... Line 352...
352
 
352
 
353
;        mov     eax, [IOCTL.input]                      ; get the pci bus and device numbers
353
;        mov     eax, [IOCTL.input]                      ; get the pci bus and device numbers
354
        mov     ax , [eax+1]                            ;
354
        mov     ax, [eax+1]                             ;
355
  .nextdevice:
355
  .nextdevice:
356
        mov     ebx, [esi]
356
        mov     ebx, [esi]
-
 
357
        cmp     al, byte [device.pci_bus]
-
 
358
        jne     .next
357
        cmp     ax , word [device.pci_bus]              ; compare with pci and device num in device list (notice the usage of word instead of byte)
359
        cmp     ah, byte [device.pci_dev]
-
 
360
        je      .find_devicenum                         ; Device is already loaded, let's find it's device number
358
        je      .find_devicenum                         ; Device is already loaded, let's find it's device number
361
  .next:
359
        add     esi, 4
362
        add     esi, 4
Line 360... Line 363...
360
        loop    .nextdevice
363
        loop    .nextdevice