// File: kernel.c // SoraOS Kernel - Main entry point // INFO: // 0xA0000 for EGA/VGA graphics modes (64 KB) // 0xB0000 for monochrome text mode (32 KB) // 0xB8000 for color text mode and CGA-compatible graphics modes (32 KB) #include "stdio.h" typedef struct user { int id; const char *name; } user; void kmain(void) { __clear_screen(); user current_user; current_user.id = 1; current_user.name = "admin"; printf("SoraOS Kernel Initialized!\n"); printf("\tUser name:\t%s\n", current_user.name); printf("\tUser id:\t%d\n", current_user.id); vga_set_cursor(0, 0); // Infinite loop while (1) { __asm__ volatile("hlt"); } }