2019-02-09 13:54:40 -06:00
|
|
|
#include "gdt.h"
|
2019-02-09 14:11:19 -06:00
|
|
|
#include "paging.h"
|
2019-02-10 14:11:07 -06:00
|
|
|
#include "isr.h"
|
2019-03-17 12:21:23 -05:00
|
|
|
#include "pmem.h"
|
2019-08-04 13:14:35 -05:00
|
|
|
#include "serial.h"
|
2019-02-11 09:30:28 -06:00
|
|
|
#include "../tasking.h"
|
2019-02-10 14:11:07 -06:00
|
|
|
|
2019-04-27 15:03:31 -05:00
|
|
|
void cpu_init(struct multiboot_boot_header_tag* tags) {
|
2019-02-09 13:54:40 -06:00
|
|
|
gdt_init();
|
2019-02-10 14:11:07 -06:00
|
|
|
isr_install();
|
2019-03-11 09:32:55 -05:00
|
|
|
asm volatile("sti");
|
2019-10-20 09:44:33 -05:00
|
|
|
serial_init();
|
2019-04-27 15:03:31 -05:00
|
|
|
pmem_init(tags);
|
2019-02-09 14:11:19 -06:00
|
|
|
paging_init();
|
2019-02-11 09:30:28 -06:00
|
|
|
tasking_init();
|
2019-02-09 12:52:45 -06:00
|
|
|
}
|