kfree comment for clarity
This commit is contained in:
parent
c8e3356a1d
commit
fbef2ef765
1 changed files with 1 additions and 0 deletions
|
@ -46,6 +46,7 @@ kfree(void *pa)
|
||||||
{
|
{
|
||||||
struct run *r;
|
struct run *r;
|
||||||
|
|
||||||
|
// Assert that page is a ligned to a page boundary and that its correctly sized
|
||||||
if(((u64)pa % PGSIZE) != 0 || (char *)pa < end || (u64)pa >= PHYSTOP)
|
if(((u64)pa % PGSIZE) != 0 || (char *)pa < end || (u64)pa >= PHYSTOP)
|
||||||
panic("kfree");
|
panic("kfree");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue