mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 13:01:40 +00:00
fe777bb52f
They are not used anymore. Also clean up some obsolete prototypes.
30 lines
372 B
ArmAsm
30 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
|