reactos/ntoskrnl/kdbg/amd64/kdb_help.S
Jérôme Gardou 3726b992ed [NTOS:KDBG] Begin port for amd64.
Not really functional, but it prints debug output.
Take this as an opportunity to add consistancy between some i386 & amd64 intrinsics
2021-04-28 13:10:23 +02:00

23 lines
284 B
ArmAsm

#include <asm.inc>
.code64
PUBLIC KdbpStackSwitchAndCall
KdbpStackSwitchAndCall:
push rbp
mov rbp, rsp /* Old stack - frame */
/* Switch stack */
mov rsp, rcx
/* Call function */
call rdx
/* Switch back to old stack */
pop rsp
ret 8
END