first commit

This commit is contained in:
Hjin-Linux
2026-03-04 17:54:26 +02:00
commit cf12e44902
16 changed files with 201 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#include <stddef.h>
void kernel_main(void) {
volatile char *video = (volatile char*) 0xB8000;
const char *msg = "LiteOS kernel started";
for (size_t i = 0; msg[i] != '\0'; i++) {
video[i * 2] = msg[i];
video[i * 2 + 1] = 0x07; // світло-сірий текст
}
while (1) {
__asm__("hlt");
}
}