Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "scheduler.h"
- #include "kernel.h"
- #include "ports.h"
- #include "console.h"
- #include "multiboot.h"
- #include "pmm.h"
- #include "string.h"
- void kernel_main(struct multiboot_info* mb_info) {
- struct multiboot_module* modules = mb_info->mi_mods_addr;
- size_t length = modules[0].end - modules[0].start;
- void* load_addr = (void*) 0x200000;
- memcpy(load_addr, (void*) modules[0].start, length);
- init_task(load_addr);
- while(1) { }
- }
Advertisement
Add Comment
Please, Sign In to add comment