kernel: add initial object manager definitions
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include <socks/pmap.h>
|
||||
#include <socks/types.h>
|
||||
#include <socks/object.h>
|
||||
#include <arch/e820.h>
|
||||
#include <socks/init.h>
|
||||
#include <socks/memblock.h>
|
||||
@@ -45,7 +46,6 @@ int ml_init(uintptr_t arg)
|
||||
|
||||
print_kernel_banner();
|
||||
|
||||
|
||||
early_vm_init();
|
||||
|
||||
e820_scan(PTR32(mb->mmap_addr), mb->mmap_length);
|
||||
@@ -61,15 +61,7 @@ int ml_init(uintptr_t arg)
|
||||
|
||||
vm_bootstrap(vm_zones, sizeof vm_zones / sizeof vm_zones[0]);
|
||||
|
||||
/* test allocation */
|
||||
vm_page_t *p = vm_page_alloc(VM_PAGE_16K, 0);
|
||||
if (p) {
|
||||
void *p_ptr = vm_page_get_vaddr(p);
|
||||
|
||||
printk("allocated 16K at %p", p_ptr);
|
||||
} else {
|
||||
printk("alloc failed");
|
||||
}
|
||||
object_bootstrap();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user