[kernel][vm] panic if mark_pages_in_use fails to find the paddr

If mark_pages_in_use fails to mark the kernel code (or data) as used,
it will get corrupted as the heap starts reusing using it.

Change-Id: I48f62bb68dcbad3268304aa2a1e63e9956128064
This commit is contained in:
Arve Hjønnevåg
2014-11-26 20:29:55 -08:00
parent ee44e7354a
commit c593fc51a1

View File

@@ -60,6 +60,8 @@ static void mark_pages_in_use(vaddr_t va, size_t len)
/* alloate the range, throw the results away */
pmm_alloc_range(pa, 1, &list);
} else {
panic("Could not find pa for va 0x%lx\n", va);
}
}
}