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