add: ksize and vsize

This commit is contained in:
2024-09-26 17:06:03 +02:00
parent a66f9174f4
commit 0bcc99997a
4 changed files with 20 additions and 1 deletions

View File

@ -33,6 +33,7 @@ void kernel_main(void)
kprintf(KERN_NOTICE "KERN_NOTICE\n");
kprintf(KERN_INFO "KERN_INFO\n");
kprintf(KERN_DEBUG "KERN_DEBUG\n");
vmalloc(10);
void *ptr = vmalloc(100);
kprintf("%d\n", ksize(ptr));
shell_init();
}