p2v -> P2V

This commit is contained in:
Robert Morris 2016-08-24 13:40:06 -04:00
parent 7a77375d64
commit a7c03bd914
5 changed files with 19 additions and 26 deletions

View file

@ -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.