diff options
author | Frans Kaashoek <kaashoek@Frans-Kaashoeks-MacBook-Pro.local> | 2011-07-31 21:27:02 -0400 |
---|---|---|
committer | Frans Kaashoek <kaashoek@Frans-Kaashoeks-MacBook-Pro.local> | 2011-07-31 21:27:02 -0400 |
commit | 547c28fc1e0cd834b2f1ab56a5c74e6b7839c582 (patch) | |
tree | a26436524fc7312004955ea3b3fcb3724be41393 /kalloc.c | |
parent | 9aa0337dc1452a911ac52698c833246a618fc9f3 (diff) | |
download | xv6-labs-547c28fc1e0cd834b2f1ab56a5c74e6b7839c582.tar.gz xv6-labs-547c28fc1e0cd834b2f1ab56a5c74e6b7839c582.tar.bz2 xv6-labs-547c28fc1e0cd834b2f1ab56a5c74e6b7839c582.zip |
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)
Diffstat (limited to 'kalloc.c')
-rw-r--r-- | kalloc.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; } |