summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2018-08-30 13:48:47 -0400
committerFrans Kaashoek <[email protected]>2018-08-30 13:48:47 -0400
commit6710e5589d192789fe1e4b5ad7598309d88ebd79 (patch)
treeef9883317f9631656a2c23c432c97aa61104ef63
parent96e4e2f4d1dd9a8634088dcd19a9e343b711f7ea (diff)
downloadxv6-labs-6710e5589d192789fe1e4b5ad7598309d88ebd79.tar.gz
xv6-labs-6710e5589d192789fe1e4b5ad7598309d88ebd79.tar.bz2
xv6-labs-6710e5589d192789fe1e4b5ad7598309d88ebd79.zip
thanks wxdao
-rw-r--r--swtch.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/swtch.S b/swtch.S
index de612bd..63a7dcc 100644
--- a/swtch.S
+++ b/swtch.S
@@ -11,7 +11,7 @@ swtch:
movl 4(%esp), %eax
movl 8(%esp), %edx
- # Save old callee-save registers
+ # Save old callee-saved registers
pushl %ebp
pushl %ebx
pushl %esi
@@ -21,7 +21,7 @@ swtch:
movl %esp, (%eax)
movl %edx, %esp
- # Load new callee-save registers
+ # Load new callee-saved registers
popl %edi
popl %esi
popl %ebx