Implement free() to finish buddy allocator

This commit is contained in:
Justin C. Miller
2018-05-07 00:59:45 -07:00
parent 949c9c0b8c
commit abb347e1a8
5 changed files with 126 additions and 52 deletions

View File

@@ -46,9 +46,9 @@ init_console(const popcorn_data *header)
cons->puts(GIT_VERSION " booting...\n");
log::init(cons);
log::enable(logs::apic, log::level::debug);
log::enable(logs::devices, log::level::debug);
log::enable(logs::memory, log::level::info);
log::enable(logs::apic, log::level::info);
log::enable(logs::devices, log::level::info);
log::enable(logs::memory, log::level::debug);
}
void do_error_3() { int x = 1 / 0; }
@@ -81,7 +81,6 @@ kernel_main(popcorn_data *header)
log::info(logs::boot, "CPU Family %x Model %x Stepping %x",
cpu.family(), cpu.model(), cpu.stepping());
// do_error_1();
// __asm__ __volatile__("int $15");