reactos/ntoskrnl/kdbg/i386/kdb_help.S
Timo Kreuzer fe777bb52f [NTOS:KDBG] Nuke KdbEnter and KdbpCliModuleLoaded
They are not used anymore. Also clean up some obsolete prototypes.
2022-07-20 23:57:42 +02:00

30 lines
473 B
ArmAsm

#include <asm.inc>
#include <ks386.inc>
.code
PUBLIC _KdbpStackSwitchAndCall@8
_KdbpStackSwitchAndCall@8:
push ebp
mov ebp, esp
mov eax, [esp + 8] /* New stack */
mov ecx, [esp + 12] /* Function to call */
mov edx, esp /* Old stack */
/* Switch stack */
mov esp, eax
push edx
/* Call function */
call ecx
/* Switch back to old stack */
pop esp
/* Return */
pop ebp
ret 8
END