summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2010-08-05 14:15:03 -0400
committerRobert Morris <[email protected]>2010-08-05 14:15:03 -0400
commit2cf6b32d4dbc915f5d3b2d7b0e382c0ad20299be (patch)
tree07c8bb6c34e0cc22d44046acfa16ba29899842ee /vm.c
parenteb18645f17877de4ced951eed5abac61bdfcd5c5 (diff)
downloadxv6-labs-2cf6b32d4dbc915f5d3b2d7b0e382c0ad20299be.tar.gz
xv6-labs-2cf6b32d4dbc915f5d3b2d7b0e382c0ad20299be.tar.bz2
xv6-labs-2cf6b32d4dbc915f5d3b2d7b0e382c0ad20299be.zip
move jkstack to main.c
replace jstack with asm()s
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/vm.c b/vm.c
index b89efd5..6689b82 100644
--- a/vm.c
+++ b/vm.c
@@ -324,17 +324,6 @@ pminit(void)
kinit((char *)kernend, freesz);
}
-// Jump to mainc on a properly-allocated kernel stack
-void
-jkstack(void)
-{
- char *kstack = kalloc(PGSIZE);
- if (!kstack)
- panic("jkstack\n");
- char *top = kstack + PGSIZE;
- jstack((uint) top);
-}
-
// Allocate one page table for the machine for the kernel address
// space for scheduler processes.
void