From 40889627ba50db29a64bc6a1553c2b21e6a99b78 Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Fri, 2 Jul 2010 14:51:53 -0400 Subject: Initial version of single-cpu xv6 with page tables --- swtch.S | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'swtch.S') 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 -- cgit v1.2.3