[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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user