summaryrefslogtreecommitdiff
path: root/user/uthread_switch.S
diff options
context:
space:
mode:
Diffstat (limited to 'user/uthread_switch.S')
-rw-r--r--user/uthread_switch.S11
1 files changed, 11 insertions, 0 deletions
diff --git a/user/uthread_switch.S b/user/uthread_switch.S
new file mode 100644
index 0000000..5defb12
--- /dev/null
+++ b/user/uthread_switch.S
@@ -0,0 +1,11 @@
+ .text
+
+ /*
+ * save the old thread's registers,
+ * restore the new thread's registers.
+ */
+
+ .globl thread_switch
+thread_switch:
+ /* YOUR CODE HERE */
+ ret /* return to ra */