Rev 3555 | Rev 4265 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3555 | Rev 3626 | ||
---|---|---|---|
Line 251... | Line 251... | ||
251 | ; 2. Allocate memory for the hub descriptor. |
251 | ; 2. Allocate memory for the hub descriptor. |
252 | ; Maximum length (assuming 255 downstream ports) is 40 bytes. |
252 | ; Maximum length (assuming 255 downstream ports) is 40 bytes. |
253 | ; 2a. Save registers. |
253 | ; 2a. Save registers. |
254 | push edx |
254 | push edx |
255 | ; 2b. Call the allocator. |
255 | ; 2b. Call the allocator. |
256 | push 40 |
- | |
257 | pop eax |
256 | movi eax, 40 |
258 | call malloc |
257 | call malloc |
259 | ; 2c. Restore registers. |
258 | ; 2c. Restore registers. |
260 | pop ecx |
259 | pop ecx |
261 | ; 2d. If failed, say something to the debug board and return error. |
260 | ; 2d. If failed, say something to the debug board and return error. |
262 | test eax, eax |
261 | test eax, eax |