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)
This commit is contained in:
parent
9aa0337dc1
commit
547c28fc1e
2 changed files with 11 additions and 10 deletions
3
kalloc.c
3
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue