mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 10:52:52 +00:00
23 lines
284 B
ArmAsm
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
|