orion_old/kernel/kernel/kernel.c

18 lines
389 B
C
Raw Normal View History

2021-08-04 15:14:22 +00:00
#include <stdio.h>
#include <stdint.h>
2021-08-04 15:14:22 +00:00
void kernel_main(void) {
printf("Hello from OrionOS!\n");
2021-08-05 13:43:31 +00:00
printf("Testing serial\n");
serial_printf("Test is success!\n");
serial_printf("Newline test\n");
char * test_string = "test";
serial_printf("This is string from variable: %s\n", test_string);
2021-08-05 13:43:31 +00:00
printf("Test finished success!\n");
2021-09-06 16:33:29 +00:00
asm volatile("sti");
for(;;) {
asm("hlt");
}
2021-08-04 15:14:22 +00:00
}