blob: 7332994b60a37a608b5e8dcf0be23d22d4cd404e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#include <serial.h>
#include <cpuid.h>
#include <lib.h>
#include <shim.h>
#include <memory.h>
#include "paging.h"
#include "mboot.h"
#include "idt.h"
#include "pic.h"
static struct boot_info boot_info;
void* amd64_shim(void *mboot_data_ptr) {
serial_init();
paging_init();
pic_remap();
idt_init();
mboot_load_info(mboot_data_ptr, &boot_info);
return &boot_info;
}
|