From 547c28fc1e0cd834b2f1ab56a5c74e6b7839c582 Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Sun, 31 Jul 2011 21:27:02 -0400 Subject: Don't map IO space in the user part of the address space Passes all tests now (but need to update usertests to allow for more than 640k) --- kalloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'kalloc.c') diff --git a/kalloc.c b/kalloc.c index 83ed7e8..cc6d380 100644 --- a/kalloc.c +++ b/kalloc.c @@ -56,7 +56,7 @@ kfree(char *v) { struct run *r; - if((uint)v % PGSIZE || v < end || v2p(v) >= PHYSTOP) + if((uint)v % PGSIZE || v < end || v2p(v) >= PHYSTOP) panic("kfree"); // Fill with junk to catch dangling refs. @@ -82,7 +82,6 @@ kalloc(void) if(r) kmem.freelist = r->next; release(&kmem.lock); - cprintf("kalloc: 0x%x\n", r); return (char*)r; } -- cgit v1.2.3