Bootstrap in-kernel memory management

This commit is contained in:
Justin C. Miller
2018-04-20 02:15:56 -07:00
parent 3b560c063a
commit e8866abc7a
7 changed files with 293 additions and 4 deletions

View File

@@ -6,6 +6,7 @@
#include "font.h"
#include "interrupts.h"
#include "kernel_data.h"
#include "memory.h"
#include "screen.h"
extern "C" {
@@ -40,6 +41,10 @@ void
kernel_main(popcorn_data *header)
{
console cons = load_console(header);
memory_manager::create(
header->memory_map,
header->memory_map_length,
header->memory_map_desc_size);
interrupts_init();
interrupts_enable();