summaryrefslogtreecommitdiff
path: root/user/uthread_switch.S
diff options
context:
space:
mode:
authorSanjit Bhat <[email protected]>2023-09-13 02:01:38 -0400
committerSanjit Bhat <[email protected]>2023-09-13 02:01:38 -0400
commit87470490676ee6dc087e3ebe2a3ce3cfbd4afbd9 (patch)
tree64398d88609ac3b9fc045071ae6703269c97ce26 /user/uthread_switch.S
parent74c1eba516fdb0ec1a17b16be7e76613ccba92bf (diff)
downloadxv6-labs-87470490676ee6dc087e3ebe2a3ce3cfbd4afbd9.tar.gz
xv6-labs-87470490676ee6dc087e3ebe2a3ce3cfbd4afbd9.tar.bz2
xv6-labs-87470490676ee6dc087e3ebe2a3ce3cfbd4afbd9.zip
release lab thread
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 */