diff options
author | Sanjit Bhat <[email protected]> | 2023-09-13 02:01:38 -0400 |
---|---|---|
committer | Sanjit Bhat <[email protected]> | 2023-09-13 02:01:38 -0400 |
commit | 87470490676ee6dc087e3ebe2a3ce3cfbd4afbd9 (patch) | |
tree | 64398d88609ac3b9fc045071ae6703269c97ce26 /user/uthread_switch.S | |
parent | 74c1eba516fdb0ec1a17b16be7e76613ccba92bf (diff) | |
download | xv6-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.S | 11 |
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 */ |