summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2018-10-03 21:00:32 -0400
committerFrans Kaashoek <[email protected]>2018-10-03 21:00:32 -0400
commita7ef9a40c48bdf380d75ae3d59198db418992011 (patch)
tree5d12b97c3c20e6c7cb252e161d39fb92eeb40186
parent7ccc5f5f4f69c8f1f16f2eda534ff9893ff2226b (diff)
downloadxv6-labs-a7ef9a40c48bdf380d75ae3d59198db418992011.tar.gz
xv6-labs-a7ef9a40c48bdf380d75ae3d59198db418992011.tar.bz2
xv6-labs-a7ef9a40c48bdf380d75ae3d59198db418992011.zip
x
-rw-r--r--swtch.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/swtch.S b/swtch.S
index de2e79d..aa527d8 100644
--- a/swtch.S
+++ b/swtch.S
@@ -8,7 +8,7 @@
.globl swtch
swtch:
- # Save old callee-save registers
+ # Save old callee-saved registers
push %rbp
push %rbx
push %r11
@@ -18,10 +18,10 @@ swtch:
push %r15
# Switch stacks
- mov %rsp, (%rdi) # first arg is in rdi
- mov %rsi, %rsp # second arg is in rsi
+ mov %rsp, (%rdi) # first arg of swtch is in rdi
+ mov %rsi, %rsp # second arg of swtch is in rsi
- # Load new callee-save registers
+ # Load new callee-saved registers
pop %r15
pop %r14
pop %r13