summaryrefslogtreecommitdiffstats
path: root/arch/x86_64/proc/switch.s
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/proc/switch.s')
-rw-r--r--arch/x86_64/proc/switch.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86_64/proc/switch.s b/arch/x86_64/proc/switch.s
new file mode 100644
index 0000000..d571c66
--- /dev/null
+++ b/arch/x86_64/proc/switch.s
@@ -0,0 +1,9 @@
+.global scheduler_switch
+.type scheduler_switch @function
+
+scheduler_switch:
+ movq %rsp, (%rdi)
+ movq %rsi, %rsp
+ retq
+
+.size scheduler_switch, . - scheduler_switch