-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f70755c
commit 8517819
Showing
1 changed file
with
1 addition
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
/* | ||
* Your code here for context_switch | ||
* | ||
* It should restores the register values in the Trapframe with the 'iret' instruction. | ||
* It should restore the register values in the Trapframe with the 'iret' instruction. | ||
* This exits the kernel and starts executing some environment's code. | ||
* | ||
* This function does not return. | ||
*/ | ||
|
||
.globl context_switch; | ||
context_switch: | ||
movl 4(%esp), %esp | ||
movl $2, %eax | ||
|
||
spin: | ||
jmp spin |