rbt: remove verify function
This commit is contained in:
parent
5121e78470
commit
ea1c1b337d
5 changed files with 0 additions and 67 deletions
20
init/main.c
20
init/main.c
|
|
@ -112,26 +112,6 @@ static void kmalloc_init_test()
|
|||
} else {
|
||||
printf(LOG_DEBUG "kmalloc consistency test passed\n");
|
||||
}
|
||||
|
||||
a = kmalloc(0x1000, ALLOC_KERN);
|
||||
b = kmalloc(0x2000, ALLOC_KERN);
|
||||
void *c = kmalloc(0x8000, ALLOC_KERN);
|
||||
void *d = kmalloc(0x10000, ALLOC_KERN);
|
||||
if (!kmalloc_verify())
|
||||
printf(LOG_DEBUG "kmalloc verify failed\n");
|
||||
kfree(d);
|
||||
void *e = kmalloc(0x10000, ALLOC_KERN);
|
||||
kfree(c);
|
||||
void *f = kmalloc(0x8000, ALLOC_KERN);
|
||||
kfree(b);
|
||||
kfree(a);
|
||||
kfree(e);
|
||||
kfree(f);
|
||||
|
||||
if (!kmalloc_verify())
|
||||
printf(LOG_DEBUG "kmalloc verify failed after frees\n");
|
||||
else
|
||||
printf(LOG_DEBUG "kmalloc verify passed after frees\n");
|
||||
}
|
||||
#endif /* KDEBUG */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue