corn/src/kmain.c

13 lines
232 B
C
Raw Normal View History

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-27 08:37:48 +00:00
void kmain(void *info) {
char buf[20];
2024-01-27 07:18:08 +00:00
*(char*)0xB8000 = 'c';
//*(char*)(0xB8002 + 0x20'0000) = 'd';
itoa((long)info, buf, 16);
2024-01-27 10:16:57 +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
}