2024-01-29 00:27:23 +00:00
|
|
|
#include <memory.h>
|
2024-01-27 08:37:48 +00:00
|
|
|
#include <lib.h>
|
|
|
|
#include <serial.h>
|
2024-01-27 10:16:57 +00:00
|
|
|
#include <fb.h>
|
2024-01-29 00:27:23 +00:00
|
|
|
#include <shim.h>
|
2024-01-27 23:30:34 +00:00
|
|
|
|
2024-01-29 00:27:23 +00:00
|
|
|
void kmain(struct boot_info *info) {
|
2024-01-27 08:37:48 +00:00
|
|
|
char buf[20];
|
2024-01-27 07:18:08 +00:00
|
|
|
*(char*)0xB8000 = 'c';
|
2024-01-29 00:27:23 +00:00
|
|
|
memory_init(info->map);
|
2024-01-27 23:30:34 +00:00
|
|
|
//*(char*)(0xB8002 + 0x20'0000) = 'd';
|
|
|
|
itoa((long)info, buf, 16);
|
2024-01-29 18:22:50 +00:00
|
|
|
itoa(*(long*)info, buf, 16);
|
2024-01-29 00:22:09 +00:00
|
|
|
//fb_init(1024, 768);
|
2024-01-27 08:37:48 +00:00
|
|
|
serial_out_str(buf);
|
2024-01-27 03:29:49 +00:00
|
|
|
}
|