beautify
git-svn-id: svn://kolibrios.org@4138 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
2775767bec
commit
a6ab7fa13e
@ -202,8 +202,7 @@ proc usb_new_device
|
|||||||
; For now, we need sizeof.usb_device_data and extra 8 bytes for GET_DESCRIPTOR
|
; 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
|
; input and output, see usb_after_set_address. Later we will reallocate it
|
||||||
; to actual size needed for descriptors.
|
; to actual size needed for descriptors.
|
||||||
push sizeof.usb_device_data + 8
|
movi eax, sizeof.usb_device_data + 8
|
||||||
pop eax
|
|
||||||
push ecx
|
push ecx
|
||||||
call malloc
|
call malloc
|
||||||
pop ecx
|
pop ecx
|
||||||
@ -498,10 +497,7 @@ proc usb_after_set_endpoint_size
|
|||||||
pop edi esi
|
pop edi esi
|
||||||
call usb_reinit_pipe_list
|
call usb_reinit_pipe_list
|
||||||
; 1d. Free the old memory.
|
; 1d. Free the old memory.
|
||||||
; Note that free destroys ebx.
|
|
||||||
push ebx
|
|
||||||
call free
|
call free
|
||||||
pop ebx
|
|
||||||
pop eax
|
pop eax
|
||||||
; 2. Issue control transfer GET_DESCRIPTOR(DEVICE) for full descriptor.
|
; 2. Issue control transfer GET_DESCRIPTOR(DEVICE) for full descriptor.
|
||||||
; restore length saved in step 1a
|
; restore length saved in step 1a
|
||||||
|
Loading…
Reference in New Issue
Block a user