Skip to content

Commit

Permalink
chore: update switch.S file
Browse files Browse the repository at this point in the history
  • Loading branch information
PatricioIribarneCatella committed May 19, 2023
1 parent f70755c commit 8517819
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sched/kern/switch.S
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

0 comments on commit 8517819

Please sign in to comment.