p2v -> P2V
This commit is contained in:
parent
7a77375d64
commit
a7c03bd914
5 changed files with 19 additions and 26 deletions
2
kalloc.c
2
kalloc.c
|
@ -61,7 +61,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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue