Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 4138 → Rev 4135

/kernel/trunk/bus/usb/protocol.inc
202,7 → 202,8
; For now, we need sizeof.usb_device_data and extra 8 bytes for GET_DESCRIPTOR
; input and output, see usb_after_set_address. Later we will reallocate it
; to actual size needed for descriptors.
movi eax, sizeof.usb_device_data + 8
push sizeof.usb_device_data + 8
pop eax
push ecx
call malloc
pop ecx
497,7 → 498,10
pop edi esi
call usb_reinit_pipe_list
; 1d. Free the old memory.
; Note that free destroys ebx.
push ebx
call free
pop ebx
pop eax
; 2. Issue control transfer GET_DESCRIPTOR(DEVICE) for full descriptor.
; restore length saved in step 1a