Subversion Repositories Kolibri OS

Rev

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

Rev 3555 Rev 3725
Line 457... Line 457...
457
        mov     eax, [ebx+usb_pipe.DeviceData]
457
        mov     eax, [ebx+usb_pipe.DeviceData]
458
        movzx   eax, [eax+usb_device_data.DeviceDescriptor+usb_device_descr.bLength]
458
        movzx   eax, [eax+usb_device_data.DeviceDescriptor+usb_device_descr.bLength]
459
; save length for step 2
459
; save length for step 2
460
        push    eax
460
        push    eax
461
        add     eax, sizeof.usb_device_data + 8
461
        add     eax, sizeof.usb_device_data + 8
462
; Note that malloc destroys ebx.
-
 
463
        push    ebx
-
 
464
        call    malloc
462
        call    malloc
465
        pop     ebx
-
 
466
; 1b. If failed, say something to the debug board and stop the initialization.
463
; 1b. If failed, say something to the debug board and stop the initialization.
467
        test    eax, eax
464
        test    eax, eax
468
        jz      .nomemory
465
        jz      .nomemory
469
; 1c. Copy data from old memory to new memory and switch the pointer in usb_pipe.
466
; 1c. Copy data from old memory to new memory and switch the pointer in usb_pipe.
470
        push    eax
467
        push    eax