Todo
This commit is contained in:
parent
8839f06fd2
commit
9790807355
1 changed files with 1 additions and 0 deletions
|
@ -46,6 +46,7 @@ void kfree(void *pa) {
|
|||
if (((u64)pa % PGSIZE) != 0 || (char *)pa < kernel_end || (u64)pa >= PHYSTOP)
|
||||
PANIC("kfree");
|
||||
|
||||
// TODO: Kconfig this
|
||||
// Fill with junk to catch dangling refs.
|
||||
memset(pa, 1, PGSIZE);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue