corn/src/kmain.c
2024-01-28 19:27:23 -05:00

15 lines
309 B
C

#include <memory.h>
#include <lib.h>
#include <serial.h>
#include <fb.h>
#include <shim.h>
void kmain(struct boot_info *info) {
char buf[20];
*(char*)0xB8000 = 'c';
memory_init(info->map);
//*(char*)(0xB8002 + 0x20'0000) = 'd';
itoa((long)info, buf, 16);
//fb_init(1024, 768);
serial_out_str(buf);
}