tianole/arch/x86/kernel/switch.S

23 lines
283 B
ArmAsm

.section .text
.global arch_context_switch
.type arch_context_switch, @function
arch_context_switch:
pushq %rbp
pushq %rbx
pushq %r12
pushq %r13
pushq %r14
pushq %r15
movq %rsp, (%rdi)
movq %rsi, %rsp
popq %r15
popq %r14
popq %r13
popq %r12
popq %rbx
popq %rbp
ret