reactos/ntoskrnl/kdbg/amd64/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

31 lines
372 B
ArmAsm

#include <asm.inc>
#include <ksamd64.inc>
.code64
PUBLIC KdbpStackSwitchAndCall
KdbpStackSwitchAndCall:
/* Save old stack */
mov rax, rsp
/* Set new stack */
mov rsp, rcx
/* Save old stack on new stack */
push rax
/* Call function */
call rdx
/* Restore old stack */
pop rax
mov rsp, rax
/* Return */
ret
END