summaryrefslogtreecommitdiff
path: root/swtch.S
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2010-07-02 14:51:53 -0400
committerFrans Kaashoek <[email protected]>2010-07-02 14:51:53 -0400
commit40889627ba50db29a64bc6a1553c2b21e6a99b78 (patch)
tree7cb8f51492af706cafdcaf1b01a5cac8073d5a38 /swtch.S
parentb7a517f2277670e156f150ee2cb7aae6426c6aef (diff)
downloadxv6-labs-40889627ba50db29a64bc6a1553c2b21e6a99b78.tar.gz
xv6-labs-40889627ba50db29a64bc6a1553c2b21e6a99b78.tar.bz2
xv6-labs-40889627ba50db29a64bc6a1553c2b21e6a99b78.zip
Initial version of single-cpu xv6 with page tables
Diffstat (limited to 'swtch.S')
-rw-r--r--swtch.S8
1 files changed, 8 insertions, 0 deletions
diff --git a/swtch.S b/swtch.S
index 8751317..49efdf9 100644
--- a/swtch.S
+++ b/swtch.S
@@ -26,3 +26,11 @@ swtch:
popl %ebx
popl %ebp
ret
+
+# Jump on a new stack, fake C calling conventions
+.globl jstack
+jstack:
+ movl 4(%esp), %esp
+ subl $16, %esp # space for arguments
+ movl $0, %ebp # terminate functions that follow ebp's
+ call mainc # continue at mainc