mirror of
https://github.com/reactos/reactos.git
synced 2024-11-11 01:04:11 +00:00
c2d0d784c7
- Create a branch to do a proper merge of USB work from a trunk base instead of from cmake-bringup - In the future, DO NOT under any circumstances branch another branch. This leads to merge problems! svn path=/branches/usb-bringup-trunk/; revision=55018
40 lines
541 B
ArmAsm
40 lines
541 B
ArmAsm
|
|
#include <asm.inc>
|
|
|
|
#ifdef _M_AMD64
|
|
.code64
|
|
|
|
PUBLIC call_method
|
|
call_method:
|
|
int 2ch
|
|
ret
|
|
|
|
#else
|
|
.code32
|
|
|
|
PUBLIC _call_method
|
|
_call_method:
|
|
push ebp
|
|
mov ebp, esp
|
|
push esi
|
|
push edi
|
|
mov edx, dword ptr ds:[ebp + 12]
|
|
shl edx, 2
|
|
jz cm1
|
|
sub esp, edx
|
|
and esp, HEX(0FFFFFFF0)
|
|
mov ecx, dword ptr ds:[ebp + 12]
|
|
mov esi, dword ptr ds:[ebp + 16]
|
|
mov edi, esp
|
|
cld
|
|
rep movsd
|
|
cm1:
|
|
call dword ptr ds:[ebp + 8]
|
|
lea esp, [ebp - 8]
|
|
pop edi
|
|
pop esi
|
|
pop ebp
|
|
ret
|
|
#endif
|
|
|
|
END
|